Azure Search in the portal returns results when SDK does not

Category: azure search

Question

ChrisMissal on Thu, 09 Nov 2017 18:28:42


When in the Azure Portal, I can see filtered results when I add to the query string. When I attempt the same results via the SDK, I get no results returned. I assume it's something wrong with my SearchParameters object, but I'm unable to determine why the results are different. What would cause this?

Replies

ChrisMissal on Thu, 09 Nov 2017 19:12:09


I now realize why the Azure Portal is returning results, it's turning my Query String into a search term. I'm attempting to use this filter:

myCollection/any(i:search.in(i, 'development'))

I can change it to:

myCollection/any(i:searchhhhhh.in(i, 'development'))

And I still get the same results. So it's not parsing my filter, just looking for keywords.

-

So now if I prefix my Query String with "$filter=" I get no results in either place. So perhaps there are a couple "gotcha's" when using search.in() ?

ChrisMissal on Thu, 09 Nov 2017 19:37:05


The final piece to my puzzle was that filters are case-sensitive. I found another forum post on that, which referenced the User Voice page (https://feedback.azure.com/forums/263029-azure-search/suggestions/6328673-support-case-insensitive-comparison-in-filters) which I have up-voted.