Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › strict order according to relevance
This topic contains 6 replies, has 2 voices, and was last updated by Ernest Marcinko 6 years ago.
- AuthorPosts
- December 4, 2017 at 11:11 am #15701
Hi,
thanks for your great plugin, it seems that everything works except of one thing which once worked in the standard version.We would like to have the search terms appear according to a strict ‘relevance’ order.
Please have a look to the attached file. This is the result list we get.
We would like to have the result where the search term appears alone in the most top spot. In our example (attached image this means that the search result ‘welding’ (marked) must apper first.
After that it should go ahead according to the quantitiy of additional words in an alphabetic order.Where did we miss some settings to achieve this result order?
thanks a lot
BenjaminAttachments:
You must be logged in to view attached files.December 4, 2017 at 11:17 am #15703You cannot access this content.December 4, 2017 at 3:52 pm #15711Hi!
Thank you very much for the proper details and your kind words!
I believe you may have found a bug that I was not aware of. The relevance was indeed not calculated correctly there, it was missing one line in the code. I have done some tests and corrected the mistake on your server directly.
I have also made the following change on your ordering options panel (you can revert it if you want of course): https://i.imgur.com/PXdk7ub.png
The reason is, that using relevance for both primary and secondary does not make any difference, as for items with matching relevance the ordering by ID is automatically used.Now the relevance will display items that ‘exactly match the phrase’ then items that ‘start with the prase’ and then items that ‘contain the phrase’: https://i.imgur.com/g7Jy3Qb.png
It should give you more expected order as before, in most cases. I hope this helps!
Best,
I will of course include this fix in the upcoming release, so you won’t have to worry about it.
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
December 4, 2017 at 4:34 pm #15714Hi,
thanks a lot for this quick help! it works indeed like a charm.I’m sorry having an additional problem:
When searching an Hebrew term there’s no text marking of the exact searched phrase against the surrounding text like it works in the other languages.
Hebrew sample term: ברגיםhow could we achieve this also in Hebrew searches?
Attachments:
You must be logged in to view attached files.December 4, 2017 at 5:31 pm #15716Hi,
You have found another bug I was not aware of as of yet. It looks like the whole word matching for the highlighter script was not working for some Unicode character sets. I have made an adjustment via FTP to the script file, I’m not sure if it’s 100% correct now, but it should start highlighting the words in most cases for Hebrew as well. Make sure to re-load your browser by hitting CTRL + SHIFT + R buttons to see it in effect: https://i.imgur.com/zDnNqzK.png
I will investigate this in more details to make sure to have a permanent solution for the next release.
Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
December 5, 2017 at 1:59 pm #15727perfect, it seems to work.
thanks for you excellent and fast support!December 5, 2017 at 2:00 pm #15728You cannot access this content. Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
- AuthorPosts
You must be logged in to reply to this topic.