Synonyms not working on my setup for some reason

Home Forums Product Support Forums Ajax Search Pro for WordPress Support Synonyms not working on my setup for some reason

This topic contains 5 replies, has 2 voices, and was last updated by

 
Keymaster
1 year, 5 months ago.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #28957

    Participant

    Hello, fantastic plugin.

    Having some odd behavior with synonyms and getting the right results. Trying to get the search time “wife” to replicate the results of search term “wives”.

    I saw your demo and corresponding documentation

    food — meal, cuisine

    and set mine up like this

    wives — wife, wive

    As i understand it, typing in “wife” will now bring the same results as typing in “wives”.

    Except mine doesn’t show that.

    I’ve attached 3 screen shots, one shows the wp-admin ajax search synonym settings, another the results from the synonym and the result from the original word. They should be the same?

    I used a completely random synonym “catfish” to try and get the same results as “wives” but it shows results for “wife”.

    So I type “catfish” and see results for search term “wife”. But in wp-admin ajax search -> synonym “wife” is set to be a synonym of “wives”.

    I’ve disabled all plugins except WooCommerce and Ajax Search Pro and the issue remains. I also re-created the index table (many times) with no luck. Hoping is just user error on my end :).

    Thanks for any help. I setup a clone site for you to check if you don’t mind. Login details added on the form.

    Thank you!

    • This topic was modified 1 year, 5 months ago by  SoSticky92.
    #28962

    Participant
    You cannot access this content.
    #28976

    Hi,

    Thank you for all the details, I was able to log-in and check your configuration. I think the confusion is caused by that one extra result you get when you search “wives” – that is taxonomy term result, and the synonyms does not apply to them, as the index table is not used there.

    As i understand it, typing in “wife” will now bring the same results as typing in “wives”.

    Not exactly – because it is not the search keyword replaced, but additional keywords indexed as synonyms, that is different a bit. The keyword occurence of non-synonyms can be different. The overall results set should be almost identical, but the order can be different.

    I tried the wife, wives, wifes combinations, but the results were identical, aside from “wives” – which also matches an additional taxonomy term as result, where the index table does not apply:
    “wife”: https://i.imgur.com/Td1GfAd.png
    “wifes”: https://i.imgur.com/dGNr5Qu.png
    “wives”: https://i.imgur.com/7H5H9UJ.png

    If you don’t want to show that extra woocommerce category as result, you can disable it here: https://i.imgur.com/jLwOHEN.png

    Best,
    Ernest Marcinko

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


    #28978

    Participant

    Hi Ernest,

    Thanks for the detailed reply. I can figure a workaround, no worries.

    Keep up the great work.

    #28979

    Participant
    You cannot access this content.
    #28993
    You cannot access this content. Best,
    Ernest Marcinko

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


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

You must be logged in to reply to this topic.