Exact match with multiple word search
-
We have posts with titles like “A perfect match”. If a user searches for this exact title, only this post should show up in the results. Otherwise, the search should run as default.
The one thing: A multiple word search term is separated (which is generally good), but through the filter of “relevanssi_match” I only get the word which applied to the result – so I cannot check if the complete term matches exactly the title. The other thing: How can I remove the other results, when there is an exact match? There is a filter “relevanssi_results”, but there I don’t know if and which post is an exact match. On top there is the challenge that short words like “a” are removed from the search term…
Any hint to solve this problem would be great ?? Thank you!
- The topic ‘Exact match with multiple word search’ is closed to new replies.