Search for an exact phrase like "Castle Dover".



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?



Apr 16, 2018 9:13

Maybe this?

Apr 16, 2018 9:49

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".

Apr 16, 2018 12:33

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

Apr 18, 2018 0:00

Ok, thanks, I will try that.

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.