• Resolved moultrex

    (@moultrex)


    Hello.

    We use your plug-in and it is very good.

    But there is a strange behavior with the added synonyms we have.

    Our native language is greek.

    For example, when a user search the term ‘μπλε’ that is the equivalent of the word ‘blue’ the right products with blue color come up.

    Now we have created a synonym cause some users search the word ‘μπλε’ with latin characters. For example they type ‘mple’ instead of ‘μπλε’ , same word but with english characters.

    So we added a synonym:

    mple = μπλε

    But when someone now searches the term ‘mple’ different products show up and not the products that you return if you type μπλε.

    Is there some problem with greek characters?

    Thank you.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Mikko Saari

    (@msaari)

    The synonyms are not transitive – if ‘μπλε’ is a synonym of ‘blue’ and ‘mple’ is a synonym of ‘μπλε’, it doesn’t mean ‘mple’ is a synonym of ‘blue’. Perhaps you need to add a ‘mple=blue’ synonym?

    Does this solve the problem? If not, please elaborate: what exactly should be found, and isn’t?

    Thread Starter moultrex

    (@moultrex)

    Something is very strange.

    If i add a synonym

    blue = μπλε

    and the user types blue, the corresponding products show up

    if i add the synonym

    mple = μπλε

    tottaly different and wrong products show up

    If i add the synonym

    mple(x) where x is a random character = μπλε

    again the right products show up

    • This reply was modified 5 years, 6 months ago by moultrex.
    Plugin Author Mikko Saari

    (@msaari)

    Do you have partial matching enabled? Can it be that “mple” matches to posts that have words like “simple”? There’s always a reason why Relevanssi brings up a result, but without seeing the site, it’s hard to say what’s up with it –?but if you want to dig into why this is happening, you can look at the Relevanssi datatabase table (wp_relevanssi) and find words (term column) that begin or end with ‘mple’.

    Thread Starter moultrex

    (@moultrex)

    Yes you are right.

    It brings the products that are simple and not variable.

    I had checked the product_type option too for the index. My bad.

    Now it’s working fine.

    Thank you very much!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Synonyms Problem’ is closed to new replies.