Support » Plugin: Relevanssi - A Better Search » I can’t search by a 3 digit numeric string

  • OK, I have some WooCommerce products in my store that have product codes in their titles. Some codes are 4 or more digits long and searching works fine.

    Some products, however, only have 3-digit numeric codes (e.g. “996”) and those won’t show up in search results. Those codes are separate words, no dashes, no decimals.

    3-letter character strings however work fine, even if they are only part of the bigger word.

    I even tried to lower the minimum search string length from 3 to 2 and rebuild the index, but no difference.

    TLDR:
    Search phrase: 996
    Product name: My amazing product 996
    The product won’t show up in search results.

    Any help? Thank you.

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

    (@msaari)

    If you try the same search in Relevanssi admin search (Dashboard > Admin search), does that work?

    This should work without problems, and I just tried it: I added “996” at the end of a post title, saved it and then searched for it successfully.

    What does the search query look like in Query Monitor? (See here: https://www.relevanssi.com/knowledge-base/debugging-with-query-monitor/)

    Thread Starter AHOiREKLAMA

    (@ahoireklama)

    Yes, it does work in Dashboard > Admin search. I get two products matching the “996” query just fine.

    On the front end however I get 6 unreated products, that seem random (I noticed they don’t even contain “996” in the content, nor in the custom fields I’ve specified). This is the query from the Query Monitor: https://prnt.sc/wnbqib

    Plugin Author Mikko Saari

    (@msaari)

    For some reason Relevanssi is not using a search term at all there. Very hard to say just from this alone what that is, but something is removing the search terms before the query passes to Relevanssi.

    Thread Starter AHOiREKLAMA

    (@ahoireklama)

    I’m using the CiyaShop theme which apparently uses it’s own search engine, so that’s probably what is conflicting with Relevanssi.

    Plugin Author Mikko Saari

    (@msaari)

    Well, I don’t know anything about that, so unfortunately I can’t help with that.

Viewing 5 replies - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.