Skip to content

Commit

Permalink
Remove custom KnnVectorFieldExistsQuery (#85945)
Browse files Browse the repository at this point in the history
This query was added to Lucene in version 9.1, so we can delete our version in
favor of using the Lucene one.
  • Loading branch information
jtibshirani committed Apr 18, 2022
1 parent c52ff05 commit 3e8c66a
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 79 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
import org.apache.lucene.document.KnnVectorField;
import org.apache.lucene.index.VectorSimilarityFunction;
import org.apache.lucene.search.DocValuesFieldExistsQuery;
import org.apache.lucene.search.KnnVectorFieldExistsQuery;
import org.apache.lucene.search.KnnVectorQuery;
import org.apache.lucene.search.Query;
import org.apache.lucene.util.BytesRef;
Expand All @@ -39,7 +40,6 @@
import org.elasticsearch.xcontent.ToXContent;
import org.elasticsearch.xcontent.XContentBuilder;
import org.elasticsearch.xcontent.XContentParser.Token;
import org.elasticsearch.xpack.vectors.query.KnnVectorFieldExistsQuery;
import org.elasticsearch.xpack.vectors.query.VectorIndexFieldData;

import java.io.IOException;
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
import org.apache.lucene.document.KnnVectorField;
import org.apache.lucene.index.IndexableField;
import org.apache.lucene.search.DocValuesFieldExistsQuery;
import org.apache.lucene.search.KnnVectorFieldExistsQuery;
import org.apache.lucene.search.Query;
import org.apache.lucene.util.BytesRef;
import org.elasticsearch.Version;
Expand All @@ -33,7 +34,6 @@
import org.elasticsearch.xpack.vectors.DenseVectorPlugin;
import org.elasticsearch.xpack.vectors.mapper.DenseVectorFieldMapper.DenseVectorFieldType;
import org.elasticsearch.xpack.vectors.mapper.DenseVectorFieldMapper.VectorSimilarity;
import org.elasticsearch.xpack.vectors.query.KnnVectorFieldExistsQuery;

import java.io.IOException;
import java.nio.ByteBuffer;
Expand Down

0 comments on commit 3e8c66a

Please sign in to comment.