• Moro Mikko ??

    I am building a site for my customer and installed the free version of the plugin. All in all it’s awesome, but I ran into an issue:

    If i search for the word “moottori” I do not get hits for the plural form “moottorit”. If I add these (both ways) in the synonyms section, they are found but… If I search for “jakomoottori” I don’t get any hits for the plural form “jakomoottorit” and I need to add these two synonyms as well.

    I have checked fuzzy matching on for all searches (also tried with the other options)

    Is this working as expected and are combined words and plural forms something that only works in the premium version? I am happy to purchase it, since this is very much the best search functionality there is for WordPress, with this one, annoying glitch…

    The page I need help with: [log in to see the link]

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

    (@msaari)

    You can assume that Relevanssi doesn’t actually understand language at all. It’s kinda stupid that way, really.

    Fuzzy searching doesn’t remove anything from the words, because it doesn’t know that it’s ok to match “moottorit” to “moottorit”, but not ok to remove something else from the word. So it doesn’t remove anything, just to be safe.

    Relevanssi Premium includes an English-language stemmer that strips off plural forms. It doesn’t have a Finnish stemmer, which would be even more useful, considering the peculiarities of the Finnish language.

    I could use one myself, so I’ll look at creating one. But that’ll be a Premium feature, then.

    Plugin Author Mikko Saari

    (@msaari)

    So… couple of hours later, and we have a working Snowball stemmer for Finnish language.

    Thread Starter Sivustonikkari

    (@risalmin)

    Fuzzy searching doesn’t remove anything from the words, because it doesn’t know that it’s ok to match “moottorit” to “moottorit”, but not ok to remove something else from the word. So it doesn’t remove anything, just to be safe.

    Hmm…
    That’s odd. If there is a text like this: “jakomoottori” on this page: https://ip-produkter.sivustonikkarit.com it does not find articles with the word “jakomoottorit” in them. And if I search for “py?r?” I find “py?r?mottorit”, but not “hammaspy?r?moottrit”.

    So basically the problem is not with plural forms, but searching inside words? Is this expected behavior.

    Plugin Author Mikko Saari

    (@msaari)

    Yes, this is expected behaviour. Relevanssi by default doesn’t look inside words. The fuzzy searching will match the beginnings and ends of the words. With your example it would make sense to match inside the word, but in many cases that will just add garbage to the results.

    It’s possible to make Relevanssi look inside words. See the relevanssi_fuzzy_query filter hook on Relevanssi user manual.

    If fuzzy search is always enabled, searching for “jakomoottori” should find a page with “jakomoottorit” in it. If fuzzy is search is partially enabled, it will find the match only if no pages matching just “jakomoottori” are found.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Plural form of same word not matched’ is closed to new replies.