Searching
Moderator: Thorsten
Searching
2.7 RC
I see some changes have been made to the searching of the database, can you please explain how searching now works?
If i search the database for the phrase "where can i" I get no results. I though maybe it was now using the stopwords (which would be prefered) so i added a few stopwords but these always give me results, so guess it's not the case.
Why do i get 0 hits on the above phrase?
I see some changes have been made to the searching of the database, can you please explain how searching now works?
If i search the database for the phrase "where can i" I get no results. I though maybe it was now using the stopwords (which would be prefered) so i added a few stopwords but these always give me results, so guess it's not the case.
Why do i get 0 hits on the above phrase?
Re: Searching
Hi,
without any knowledge about your data I cannot answer your question, sorry.
bye
Thorsten
without any knowledge about your data I cannot answer your question, sorry.
bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
amazon.de Wishlist
Re: Searching
What would you like to know to answer the question?
Re: Searching
Hi,
can I view your FAQ installation?
bye
Thorsten
can I view your FAQ installation?
bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
amazon.de Wishlist
Re: Searching
Hi,
which version of MySQL do you use?
bye
Thorsten
which version of MySQL do you use?
bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
amazon.de Wishlist
Re: Searching
Tried with both mysql and mysqli, results the same.
Re: Searching
Hi,
it's really strange, is it possible to get access to your phpMyAdmin?
bye
Thorsten
it's really strange, is it possible to get access to your phpMyAdmin?
bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
amazon.de Wishlist
Re: Searching
I've pm'd you the password to one of my test sites.
I've also checked this on Jason's website (https://jaysonberger.com/faqs/) searching for "how can i" and this also gives no hits.
I've also checked this on Jason's website (https://jaysonberger.com/faqs/) searching for "how can i" and this also gives no hits.
Re: Searching
Hi,
yes, if you search for words with less than 4 characters MySQL strips the result.
bye
Thorsten
yes, if you search for words with less than 4 characters MySQL strips the result.
bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
amazon.de Wishlist
Re: Searching
Ok, thanks for that bit of info.
What happens to the word 'where' as this gives no results.
What happens to the word 'where' as this gives no results.
Re: Searching
Hi,
I think it's in MySQL's threshold... but normally phpMyFAQ should try to search for those short words as well...
bye
Thorsten
I think it's in MySQL's threshold... but normally phpMyFAQ should try to search for those short words as well...
bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
amazon.de Wishlist
Re: Searching
Therefore I set the "ft_min_word_len". See: viewtopic.php?f=2&t=12433&p=35358&hilit ... len#p35358
This applies, if multiple search terms are used, or an apostophe is in the search words, or...
Which is your exact searchterm? I expect 'how can I' will return an emtpy list, because suppose the words how, can, i are on the MYSQL complied stopword list .(see here http://dev.mysql.com/doc/refman/5.1/en/ ... uning.html
You should search literally e.g for '"How can I"' or '"how" "can" "I"'
This applies, if multiple search terms are used, or an apostophe is in the search words, or...
Which is your exact searchterm? I expect 'how can I' will return an emtpy list, because suppose the words how, can, i are on the MYSQL complied stopword list .(see here http://dev.mysql.com/doc/refman/5.1/en/ ... uning.html
You should search literally e.g for '"How can I"' or '"how" "can" "I"'
Our public FAQ is proudly powered by phpMyFAQ: http://vhtfaq.ge51.honeywell.de/
Re: Searching
Ok, many thanks. I'll give it a go tomorrow. Also i'll have a play with ft_stopword_file at the same time.