Exact matches vs any word matches
- pgilpatParticipant2 years, 11 months ago #27859
How do we control the search between the two results?
Website Search page- This topic was modified 2 years, 11 months ago by wpsolr.
wpsolrKeymaster2 years, 11 months ago #27862Try several words. You’ll notice that the search returns results for multiple words, even with plural/singular forms.
pgilpatParticipant2 years, 11 months ago #27867Ok, I’ll give you an example:
search result snapshot
For example, in this example I searched for certitudes of religion
It returned three results. Only the first one (exact match) is relevant. the other two are irrelevant or a waste of time for the user to visit if they are only looking for that phrase.pgilpatParticipant2 years, 11 months ago #27869What is the potential to add that feature? It is paramount to the success of our project. We have been converting our large site to WordPress from ColdFusion. The existing ColdFusion site, which also uses Solr reacts like this:
Use the text certitudes of religion
and see the difference between exact match and any words.
ExamplewpsolrKeymaster2 years, 11 months ago #27872I can update WPSOLR to accept double quoted keywords as an exact Solr syntax match.
So:
– “my keyword”
would be an exact match
– my keyword
would notYou would have to to replace your switch by a message to your visitors like “use double quote for an exact match”.
pgilpatParticipant2 years, 11 months ago #27873Thanks, I thought about that and appreciate the option. I’m not sure if my client will go for it. This search has been in existence for many years and I think they migrated from that approach to making exact match the default return because of having to “train” the user to add additional syntax. I’m meeting with a client representative in an hour in preparation for a direct meeting with the main client tomorrow. We are heading to a launch in mid-October.
Is there another option to make the exact match the default without adding syntax?
By the way, what time zone are you in? I appreciate the fast responses.
You must be logged in to reply to this topic.