An OpenSearch Service Faiss HNSW index applies a tenant post_filter after approximate nearest-neighbor retrieval, often returning fewer than 20 results despite many eligible documents. Which change best supports finding 20 tenant-eligible neighbors without an exhaustive vector scan?
Show the answer
Correct answerD. Move the tenant condition into the k-NN query's supported filter.
AWhy not this: A larger response size alone does not make the retrieved nearest-neighbor candidates tenant-eligible.
BWhy not this: Script-score vector search evaluates eligible vectors exhaustively, conflicting with the stated constraint.
CWhy not this: More shards do not correct the separation between neighbor selection and tenant filtering.
DWhy this is right: Efficient filtering incorporates tenant eligibility into nearest-neighbor retrieval instead of discarding results afterward.
Efficient k-NN filtering applies eligibility constraints during vector search rather than discarding neighbors afterward. Filtered script-score search can evaluate eligible documents exactly, but it introduces the exhaustive vector scan the workload must avoid.