Question 630
A regulated assistant combines keyword and vector retrieval in Azure AI Search. Its index has a `department` metadata field declared with `filterable: false`, but the app must restrict results to the caller's authorized department. A hybrid query using an OData department filter fails schema validation. What must be changed before this access filter can work?
Explanation
Correct Answer
Azure AI Search requires filterable metadata fields for OData filters. Since an existing field's filterable attribute cannot be changed in place, add a new suitable field or rebuild and repopulate the index, then send the department predicate.
Incorrect Answers
A larger neighbor set changes retrieval count but cannot make an index field legal in an OData filter expression.
Semantic reranking orders search results; it does not change index schema metadata needed for an authorization filter.
Vector fields cannot be filterable. Department restrictions belong on a suitable nonvector metadata field with `filterable: true`.