November Happy Hour will be moved to Thursday December 5th.
AI OnAI Off
November Happy Hour will be moved to Thursday December 5th.
"using either one of Name or Locality" would suggest you should do an Or filter. An and will only match if both the values of Name AND Locaility match.
If it is an AND you can achieve that in one simple query using an & or even chaining filters as shown here https://world.episerver.com/documentation/developer-guides/find/NET-Client-API/searching/Filtering/
var place = _findClient.Search<Place>()
.Filter(p => p.Name.MatchCaseInsensitive("Name") & p.Name.MatchCaseInsensitive("Locality"))
.GetResult();
Hi,
I am trying to search two fields using the BuildFilter extension method but no results are returned. Here is the code I am using
Running a search using either one of Name or Locality returns results, when used in an AND query nothing is returned.
Any help would be appreciated.
Thanks