• Resolved morvy

    (@morvy)


    Hello,

    I have a strange issue here with partial matching. I believe everything is set correctly – AND with OR fallback, Partial Match (basically default behavior).

    I have a product with “Rundes” in the title, some products with “Runde” in the title or in the description. If I search for “rund” I get 0 results. If I search for “runde” I get both Rundes and Runde products which is correct. Is there a limit for characters that has something to do with partial matching? I have 3 characters for minimal word length.

    Thanks for your help!

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

    (@msaari)

    Let me guess: your site is in German?

    “Rund” is in the German stopword list; that would explain why it’s not working. You can remove the word from the stopword list, and it’ll start working.

    Thread Starter morvy

    (@morvy)

    The site is WPML – default German, additionaly English.

    I’ve checked stopwords, it has only some english stopwords, only 1 german which is “und”. “rund” is not there, closest match is that “und”. I tried to remove it, without change after reindexing.

    Plugin Author Mikko Saari

    (@msaari)

    Partial stopword match doesn’t matter, only “rund” would be a problem.

    If it’s not the stopwords, then I don’t know. Nothing obvious comes to my mind. Does “run” work? Is it only “rund”, or anything shorter than that?

    Thread Starter morvy

    (@morvy)

    Just tried “run” and it works, returns a different order, but matches all the products it should match. So it’s really only the “rund” that is not working. I tried to add it to stopwords and remove but without any effect.

    Plugin Author Mikko Saari

    (@msaari)

    And just to make sure, you’re working with the right language stopwords? There’s a separate set of stopwords for each language when you use WPML.

    Thread Starter morvy

    (@morvy)

    OK, this must’ve been an issue in the DB or something. I disabled the plugin, re-enabled it and there are now hundreds of stopwords in both languages, including “rund” in German. Removed it, reindexed just to be sure and now it works correctly.

    Thanks a lot!

    • This reply was modified 1 year, 6 months ago by morvy.
Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Partial match does not match’ is closed to new replies.