umbraco.examine.linq
umbraco.examine.linq copied to clipboard
Passing in a list of int ids
Is it possible to add filtering by a list of ints functionality?
public List<FooResult> GetFoosByIds(List<int> ids) { List<FooResult> foos = Index<FooResult>("FooSearcher").Where(x => x.NodeTypeAlias == "foo" && ids.Contains(x.Id)).ToList(); return foos; }
It looks like it doesn't do anything with the list [ParseException: Cannot parse '(+nodeTypeAlias:foo) AND ': Encountered "<EOF>" at line 1, column 72.