Hi,
For example, I have a new FAQ which has an exact phrase "word1 word2" in the text, tag "word1 word2", and finally, "word1 word2" as a keyword. It comes up last because it's the latest one with the least views, and a few older FAQs have the same tag and keyword because they should. Is there a way to change the order of search results and make this best match entry be a first on the list?
Thanks
Order of search results
Moderator: Thorsten
Re: Order of search results
Hi,
do you use MySQL? If yes, did you enable search by relevance? Did you try the sorting by relevance?
bye
Thorsten
do you use MySQL? If yes, did you enable search by relevance? Did you try the sorting by relevance?
bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
amazon.de Wishlist
Re: Order of search results
All done now, and it looks much better. Thank you very much.
Still in regards of search, I have a search box at the bottom, and the refreshed page with results shows the middle of the page, so a user has to scroll up.
Where would be the directive for the top of the page? Template or code? I use spacelab template.
Thanks
Still in regards of search, I have a search box at the bottom, and the refreshed page with results shows the middle of the page, so a user has to scroll up.
Where would be the directive for the top of the page? Template or code? I use spacelab template.
Thanks
Re: Order of search results
Hi,
good news on the search!
For the scroll up issue, you could add a "autofocus" attribute into the search input field.
bye
Thorsten
good news on the search!
For the scroll up issue, you could add a "autofocus" attribute into the search input field.
bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
amazon.de Wishlist
Re: Order of search results
Sorry, I don't get this part. How is that done?you could add a "autofocus" attribute into the search input field
Thanks
Re: Order of search results
Hi,
just checked the code of the default template, shouid work as intended there. Can you post me a link to your FAQ?
bye
Thorsten
just checked the code of the default template, shouid work as intended there. Can you post me a link to your FAQ?
bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
amazon.de Wishlist
Re: Order of search results
I just saw the autofocus already in the search.tpl input field, too. The point is that the "jump" happens, but not all the way to the top. And after paying more attention to the search page, I see that the search field and button always stay on the bottom of the page which prevents it to go to the very top since the search form is at the bottom. Which part controls this behavior?
Thanks
Thanks
Re: Order of search results
Dumb me.
Since I moved search section to the bottom of the page, autofocus should be deleted from the input field.
Thanks for the right hint!
Since I moved search section to the bottom of the page, autofocus should be deleted from the input field.
Thanks for the right hint!
Re: Order of search results
Hi,
ah, great!
bye
Thorsten
ah, great!
bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
amazon.de Wishlist