• Robertmurdock

    (@robertmurdock153)


    Hello Team,

    We are currently using the Relevanssi (Version 4.23.1) plugin integrated with FacetWP and the FacetWP – Relevanssi add-on. However, we are encountering an issue where exact match searches are not appearing in the first position.

    For example, when searching for the full recipe keyword “easy tzatziki,” the correct recipe appears in the search results but in positions 3-4 instead of being listed first.

    We have a custom post type for recipes, and “easy tzatziki” is set as the recipe title. The FacetWP search filter is configured to display these results.

    Initially, this issue seemed resolved after deactivating the plugin, clearing the cache, and reindexing in Relevanssi. However, despite repeating these steps, the exact match is still not showing in the top position.

    We also tried implementing the following hook as per the Relevanssi documentation to boost exact title matches, but it hasn’t worked:

    Screenshots:

    Could you please advise on how to ensure that the exact match appears in the first position?

    Thank you, and please let us know if you need further information.

    Thanks

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

    (@msaari)

    If you do the same search on Relevanssi admin search (Dashboard > Admin search), are the results the same? That search will show you the exact relevance scores for the posts. Are the posts in relevance order? If they aren’t, any amount of weight adjustment won’t help, so that’s something to check first.

    If you want more precise search results, you can also set the search to use “AND” as the default operator.

    Thread Starter Robertmurdock

    (@robertmurdock153)

    Hello Mikko,

    Thanks for the quick response on this.

    I followed the troubleshooting steps suggested by the support team. I performed searches for ‘Eazy Tzatziki’, ‘Pimento Cheese’, and ‘Creamed Spinach’ in the Relevanssi admin search (Dashboard > Admin search). The search displayed results for ‘Easy Tzatziki’ but did not show exact results for the other two. It displayed the result when searching only for ‘Pimento’.

    https://capture.dropbox.com/gBE1RwOtpUrsG7hU

    https://capture.dropbox.com/PEW4PEaEp7mGE9vL

    https://capture.dropbox.com/JOkMj4MNlawf4JTD

    https://capture.dropbox.com/WWY68rJvHisNVDRl

    After performing these random recipe searches, I tried indexing unindexed posts on the settings page, and all 1204 recipes were now indexed. 

    https://capture.dropbox.com/BTpNDLeLYdOsfqE0

    When I tried searching for recipes on the front end, it showed unexpected results for other recipes except for ‘Eazy Tzatziki’. 

    Based on this analysis, it seems we are still experiencing issues with exact-match recipe searches in the search results.

    Here is the weight and operator configuration screenshot.

    https://capture.dropbox.com/3oTeA3LyDXSuePXz

    Please guide us on what we can do for next step resolve the issue.

    Thanks

    Plugin Author Mikko Saari

    (@msaari)

    Can you please show me how Relevanssi sees the Pimento Cheese post? In the debugging tab of Relevanssi settings, there are two separate debugging tools for inspecting posts. Can you please show me the output of both of them for the Pimento Cheese post? For some reason, it seems the word “cheese” is not indexed for that post.

    Thread Starter Robertmurdock

    (@robertmurdock153)

    Hello Mikko,

    We have debugged accordingly, but the second debugging option is not showing any information.

    Screenshot: Debugging Issue

    Additionally, we created the staging website from the live site and checked the issue there; however, the search is working as expected.

    Screenshot: Staging Website Search

    Let us know if you have any questions.

    Plugin Author Mikko Saari

    (@msaari)

    Ok, so none of the post content is in the actual post content. For some reason the word “cheese” is not indexed for this post. Is there any chance it’s a stopword? If “cheese” has been a stopword at some point, I would suggest reindexing everything. That might solve this.

    Thread Starter Robertmurdock

    (@robertmurdock153)

    Hi Mikko,

    We checked the stopwords list and did not find the word “Cheese” there.
    Screenshot: https://capture.dropbox.com/ANoXRXOO4BJeeLrs

    However, after reindexing again, the results seem to be working fine. That said, we’ve noticed that the issue appears randomly—sometimes it works, and other times it doesn’t.

    Could you please advise on how we can resolve this if the issue arises again? Could you also check with the plugin developer to investigate this intermittent problem?

    Let us know if you have any questions.

    Thread Starter Robertmurdock

    (@robertmurdock153)

    Hi Mikko,

    Any feedback for above?
    Thanks

    Plugin Author Mikko Saari

    (@msaari)

    Not really. I can help with problems that can be reliably reproduced. An intermittent problem like this is a hard one, as I don’t really know where to start investigating it. It may be very specific to your site and maybe influenced by a third plugin.

    Thread Starter Robertmurdock

    (@robertmurdock153)

    Hi Mikko,

    Thank you for your response. We understand that intermittent issues can be difficult to troubleshoot without consistent reproduction. We will keep this issue under observation on our end and will reach out again with any additional details if we notice any patterns that might help with the investigation.

    Thanks again for your support!

    Thanks

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