umbraco.examine.linq icon indicating copy to clipboard operation
umbraco.examine.linq copied to clipboard

Passing in a list of int ids

Open mahgo opened this issue 8 years ago • 0 comments

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.

mahgo avatar Nov 12 '16 04:11 mahgo