avarnon/Azure-Search-Query-Builder

Add support for search.in

Closed this issue · 1 comments

This is related to security trimming in https://docs.microsoft.com/en-us/azure/search/search-security-trimming-for-azure-search. Basically, add a way to pass in a collection of things with which to compare a document property with.

string options = new string[] { "1", "2", "3" };
x => x.appliedOptions.Any(option => options.Contains(option))
appliedOptions/any(option: search.in(option, '1', '2', '3'))

While we're at it we should add support for all of the search.* and geo.* methods.

search.ismatch and search.ismatchscoring
geo.distance and geo.intersects
search.in
search.score