Reputation: 1503
I receive this
Invalid expression: Syntax error at position 8 in '$filter=search.in(Categories, 'Career Resources', ',')'. Parameter name: $filter
exception when performing a search in Azure.
Here is the code snippet by itself
$filter=search.in(Categories, 'Career Resources', ',')
Can anyone tell me why?
Upvotes: 0
Views: 1499
Reputation: 1503
I ended up solving the problem by using a completely different syntax:
"Categories/any(f: f eq 'Career Resources')"
Upvotes: 1
Reputation: 18
The search.in function got two overloads:
so in you are case,
if you are searching for "Career Resources" then syntax will be
$filter=search.in(Categories, 'Career Resources')
And if you are searching for "Career" or "Resources" then syntax will be
$filter=search.in(Categories, 'Career,Resources' ',')
Upvotes: 0