I'd like to use Azure Search's search.in
filter clause to do security trimming. I'm expecting to need to pass up to 10,000 ids to the clause (not usually, but sometimes).
The azure search documentation states that an individual query clause is limited to 32kb: https://docs.microsoft.com/en-us/rest/api/searchservice/lucene-query-syntax-in-azure-search#bkmk_querysizelimits
I was worried about hitting that limit, so I did a spike with a large (100,000 item) search.in
query and it seem to work absolutely fine.
But I'm worried I'm going against what the documentation appears to advise. While the documentation does say that a filter with a search.in is ideal for security trimming, does it seem like i'm safe to use search.in with large sets of ids?