• Resolved farah94

    (@farah94)


    Hi,

    When we add the partial word for the desired product it shows in the search results but when we add the complete term the search results show only the complete word products, not the matching partial term. See the screenshots for a better understanding of this issue.

    https://drive.google.com/file/d/1H0B0OCdLT_HsflqqNnVuU1Boq5OeQ8os/view?usp=sharing

    https://drive.google.com/file/d/1fwy82VpvFMrvBsQ1dtrSqgpXXROst8L5/view?usp=sharing

    In the screenshots I’m looking for scalpels; when I add the term “scalpel” it shows the complete range of products with a scalpel but when I add the complete word “scalpels” it removes the products with the partial word and presents the complete word products. Why is that? It should show all products. I want the search results to display all products with the partial term and with full term too.

    I also switch the theme of the website to the storefront theme. And the issue is still the same. Currently, I’m using the woodmart premium theme.

    Kindly help me solve this problem.

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

    (@msaari)

    You need to understand Relevanssi does not understand language. It doesn’t know ”scalpel” and ”scalpels” are the same word. You search for ”scalpels”, so Relevanssi returns you the results you’re asking for, not something else. The search is working correctly.

    Now, I understand you’d want ”scalpels” and ”scalpel” to be the same. There are a couple of solutions to this. Relevanssi Premium has support for a stemmer that can convert all words to their base stems, increasing recall (at the cost of reduced precision).

    With the free Relevanssi, you could throw in a filter that modifies the search queries to remove the final ”s” from the search terms, so that ”scalpels” would search for ”scalpel”.

    If you want a search that understands the nuances of natural language, look for products like Algolia.

    Thread Starter farah94

    (@farah94)

    Thanks for your reply and the suggestion you gave.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Product Search Result Issue’ is closed to new replies.