strict order according to relevance

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 Ernest Marcinko 4 years, 6 months ago.

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #15701
    wpdreamsBethel
    wpdreamsBethel
    Participant

    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
    Benjamin

    Attachments:
    You must be logged in to view attached files.
    #15703
    wpdreamsBethel
    wpdreamsBethel
    Participant
    You cannot access this content.
    #15711
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Hi!

    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!
    I will of course include this fix in the upcoming release, so you won’t have to worry about it.

    Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


    #15714
    wpdreamsBethel
    wpdreamsBethel
    Participant

    Hi,
    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.
    #15716
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Hi,

    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 :)


    #15727
    wpdreamsBethel
    wpdreamsBethel
    Participant

    perfect, it seems to work.
    thanks for you excellent and fast support!

    #15728
    Ernest Marcinko
    Ernest Marcinko
    Keymaster
    You cannot access this content. Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


Viewing 7 posts - 1 through 7 (of 7 total)

You must be logged in to reply to this topic.