You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This issue has been filed to track adding support for a pre-filter to all query types, namely CagraQuery and HnswQuery.
Currently only BruteForceQuery supports a pre-filter. For example,
var queryBuilder = new BruteForceQuery.Builder()
.withPrefilter(new long[] { 0b1111L });
A pre-filter is important for the Lucene use case, since Lucene uses a pre-filter to, among other things, support filtering-out deleted docs while searching. (a deleted doc may still appear in the index, but is filtered out during search with a pre-filter). For now, we workaround this during search by oversampling the topK when searching an index that may have deleted docs or a user provided pre-filter. This is a rough heuristic and not ideal.
The text was updated successfully, but these errors were encountered:
This issue has been filed to track adding support for a pre-filter to all query types, namely
CagraQuery
andHnswQuery
.Currently only
BruteForceQuery
supports a pre-filter. For example,A pre-filter is important for the Lucene use case, since Lucene uses a pre-filter to, among other things, support filtering-out deleted docs while searching. (a deleted doc may still appear in the index, but is filtered out during search with a pre-filter). For now, we workaround this during search by oversampling the topK when searching an index that may have deleted docs or a user provided pre-filter. This is a rough heuristic and not ideal.
The text was updated successfully, but these errors were encountered: