KNN prefiltering in Manticore Search (available from v19.0.1) integrates attribute filters directly into HNSW graph traversal rather than applying them after the fact. Postfiltering can return fewer results than requested when filters are selective, while prefiltering guarantees k results. Manticore uses three strategies

7m read timeFrom manticoresearch.com
Post cover image
Table of contents
The problem with postfilteringWhat prefiltering does differentlyNaive prefiltering and where it falls shortHow Manticore solves it: ACORN-1Automatic brute-force fallbackWhen to use postfiltering insteadForcing brute-forceSummary

Sort: