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

    (@msaari)

    Phrase search is the way to go. Does searching for "redmi note 9 pro" with the quotes return the correct results? If it doesn’t, does it work in the Relevanssi Admin search (Dashboard > Admin search).

    The forced phrase search with fallback is what I would’ve recommended, that’s exactly the solution you need. What happened when you tried it?

    Thread Starter alprio

    (@alprio)

    Hello ,
    With quotes it works correctly.

    Without I get the results from the image.

    I will attach an image from admin search that it works correctly without the quotes.
    https://imgur.com/a/d7g3ZZ6

    https://imgur.com/a/s7RzOBq

    • This reply was modified 8 months ago by alprio.
    Plugin Author Mikko Saari

    (@msaari)

    If the forced phrase search code works in the Relevanssi admin search but fails to have any effect on the front end search, your front end search is not Relevanssi.

    How is the search done in your theme? Does it follow WordPress search page standards or is it something customized?

    Thread Starter alprio

    (@alprio)

    i am using woodmart theme.
    I have enabled in settings to use relevanssi plugin.
    can somehow disable the built in search and use yours explicitly ?
    https://freeimage.host/i/JhLIYjn

    Plugin Author Mikko Saari

    (@msaari)

    Ah, you’re talking about the AJAX search? I checked your site and the main search seems to be working correctly (it takes you directly to the product page, so it’s one result only), while the AJAX search shows more results.

    It depends on how the search is made. Some AJAX searches like this automatically work with Relevanssi; others have filters that allow you to switch to Relevanssi. In some cases, it’s impossible to fix. I don’t know what the case is for Woodmart. Since it has an option for enabling Relevanssi, one would assume it supports Relevanssi.

    Since this problem is about Woodmart features, I would recommend asking Woodmart support about this. As they have a built-in Relevanssi support, it’s possible they’re not going to say “not our problem” ??

    Thread Starter alprio

    (@alprio)

    ahh okkk. I thought you cowork on this.
    Thank you very much for your time.
    I am going to ask them then.
    Have a nice day sir.

    Thread Starter alprio

    (@alprio)

    hey again,
    Is there a way to force relevanssi ajax results ?
    or to auto add quotes if someone searches without quotes and if nothing is found the use the fallback ?

    Plugin Author Mikko Saari

    (@msaari)

    The forced phrase search linked in your first post does that; it makes every search a phrase search, just as if there are quotes around the search terms.

    What do you mean “force Relevanssi ajax results”? If you have a search form with the Relevanssi Live Ajax Search javascript code in it, that should run the Relevanssi Ajax search.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Exact product title only’ is closed to new replies.