search terms ... exact search terms ... etc

In this board you can talk about general questions about phpMyFAQ

Moderator: Thorsten

Post Reply
WSchn123
Posts: 100
Joined: Wed Feb 02, 2005 11:00 am

search terms ... exact search terms ... etc

Post by WSchn123 » Sun Jun 30, 2013 6:58 am

Hi,

I am using version 2.8.1 now for a FAQ board with biblical studies, where quite often searches for verse references such as "1Mo 4" or "Joh 3,16" etc. are required to find articles with certain verses etc When entering Joh 3,16 I do get results for just the "Joh" part (many irrelevant articles included), but would want only the results with the exact match. I could not find any option where I could set an "exact" or at least "all terms", etc ... I tried enclosing the terms in quotes, but that did not really improve the search results as desired ... Perhaps I'm just "a little blind" and don't see what maybe right in front of my eyes?

Any ideas?

Cheers,
Wolfgang

Thorsten
Posts: 14809
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: search terms ... exact search terms ... etc

Post by Thorsten » Sun Jun 30, 2013 8:42 pm

phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist

WSchn123
Posts: 100
Joined: Wed Feb 02, 2005 11:00 am

Re: search terms ... exact search terms ... etc

Post by WSchn123 » Sun Jun 30, 2013 10:03 pm

Hi Thorsten

unfortunately, it does not help at all ....
The option of enclosing a phrase in " " which should return the exact value does not work as described ...
(a) in cases of verse references (such as "1Mo 1,26") it returns nothing found (even though there are articles which do contain that reference)
(b) in case like "Johannes der Täufer" it returns 1 article, but marks the occurrences of the word "der" (even when in the middle of words) rather than the exact phrase. (go to starting page http://faq.bibelcenter.de//index.php? and enter "Johannes der Täufer" in search field)
(c) tried "Altes Testament", and the search returned articles with "Testament" ... such as ones, where the "Neues Testament" is actually mentioned and the "Altes Testament" does not even occur ...

It seems to me that the "search" function is somehow not working as one would "intuitively" expect ... and perhaps there needs to be some explanatory text on how to use various available operators "+", "-", "*", " ", etc. to properly do a search ?

Cheers,
Wolfgang

WSchn123
Posts: 100
Joined: Wed Feb 02, 2005 11:00 am

Re: search terms ... exact search terms ... etc

Post by WSchn123 » Wed Jul 03, 2013 9:49 am

hi Thorsten,

konntest Du zu dem Problem mit der "Such" Funktion schon was finden bzw. zumindest anhand meines Links bei meinen FAQ nachvollziehen, was ich erwähnte?

Grüße
Wolfgang

Thorsten
Posts: 14809
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: search terms ... exact search terms ... etc

Post by Thorsten » Wed Jul 03, 2013 9:51 am

Hi,

noch nicht, guck ich mir die Tage anhand deiner DB an.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist

WSchn123
Posts: 100
Joined: Wed Feb 02, 2005 11:00 am

Re: search terms ... exact search terms ... etc

Post by WSchn123 » Wed Jul 03, 2013 9:59 am

Thorsten
Thorsten wrote:Hi,
noch nicht, guck ich mir die Tage anhand deiner DB an.
schicke Dir neuen DB Dump per eMail, in denen die neueren Artikel auch enthalten sind.

Grüße
Wolfgang

Thorsten
Posts: 14809
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: search terms ... exact search terms ... etc

Post by Thorsten » Wed Jul 03, 2013 5:50 pm

Hi,

danke, ich teste dann mal.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist

WSchn123
Posts: 100
Joined: Wed Feb 02, 2005 11:00 am

Re: search terms ... exact search terms ... etc

Post by WSchn123 » Wed Jul 10, 2013 9:14 am

Hi Thorsten,

hat mein Problem eventuell etwas mit der gleichen Sache wie im "Bug Reports" Forum unter
Specific Search does not find content
zu tun ?

Cheers,
Wolfgang

Thorsten
Posts: 14809
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: search terms ... exact search terms ... etc

Post by Thorsten » Wed Jul 10, 2013 2:29 pm

Hi,

nein, das liegt an MS SQL und Hebräisch...

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist

WSchn123
Posts: 100
Joined: Wed Feb 02, 2005 11:00 am

Re: search terms ... exact search terms ... etc

Post by WSchn123 » Thu Jul 11, 2013 3:40 pm

Hello Thorsten

were you able to make any progress with this "search" matter?

Cheers,
Wolfgang

Thorsten
Posts: 14809
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: search terms ... exact search terms ... etc

Post by Thorsten » Thu Jul 11, 2013 7:04 pm

Hi,

not yet, maybe later today.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist

Thorsten
Posts: 14809
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: search terms ... exact search terms ... etc

Post by Thorsten » Sat Jul 13, 2013 8:14 am

Hi,
(a) in cases of verse references (such as "1Mo 1,26") it returns nothing found (even though there are articles which do contain that reference)
these are 2 strings, one shorter than the minimum search length for MySQL full text search and a float value. MySQL full text search won't return anything here, we do a fallback to a LIKE search and it'll return the best results from the LIKE query.
(b) in case like "Johannes der Täufer" it returns 1 article, but marks the occurrences of the word "der" (even when in the middle of words) rather than the exact phrase. (go to starting page http://faq.bibelcenter.de//index.php? and enter "Johannes der Täufer" in search field)
Yes, but this is not a search issue, this is an issue in out highlighting code.
(c) tried "Altes Testament", and the search returned articles with "Testament" ... such as ones, where the "Neues Testament" is actually mentioned and the "Altes Testament" does not even occur ...
Yes, it searches for "altes" and/or "testament" as there's no exact string "altes testament" mentioned in any of your FAQs.

We could improve the search by adding support for ElasticSearch or Solr, both based on Lucene. But then these search engines won't run on shared web hostings.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist

Thorsten
Posts: 14809
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: search terms ... exact search terms ... etc

Post by Thorsten » Sat Dec 26, 2015 1:52 pm

Hi,

phpMyFAQ 2.9 will support Elasticsearch. Finally!

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist

Post Reply