Try our conversational search powered by Generative AI!

Search for an exact phrase like "Castle Dover".

Vote:
 

Hi,

Is is possible in Episerver Find to search for an exact phrase, the default implementation of Find searches for occurrences of "Castle" and "Dover" and add weighting to the search results. But I want to search for "Castle Dover"; the exact phrase with spaces.

Is this possible?

Thanks!

Marc

#190686
Apr 16, 2018 9:13
Vote:
 

Maybe this?

#190690
Apr 16, 2018 9:49
Vote:
 

Hi Thanks, .WithAndAsDefaultOperator() surely is a helpful feature I didn't know about, but it does a "Castle AND Dover", not a literal string. I want to search for the exact phrase which is entered. Like "Castle Dover".

#190699
Apr 16, 2018 12:33
Vote:
 

Enclose it in double quotes when passing the text to the query.

#190870
Apr 18, 2018 0:00
Vote:
 

Ok, thanks, I will try that.

#190876
Apr 18, 2018 8:40
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.