Hi Patrick,
Thanks for the quick response and the explanation and sources are helpful!
But there is still a point we couldn't quite understand: why did the test I
mentioned earlier pass (applyAllDeletes false and do maybeRefresh())? If
the delete is not applied, we should see the deleted doc in th
Hi Ningshan,
If you want to make sure the deletes are applied after you call
maybeRefresh() then you need to set the applyAllDeletes to be true.
A bit more details:
The constructor of SearcherManager actually internally passes the
applyAllDeletes to the IndexWriter, which then will pass it to the
Hi!
Hope you are all doing well! We are using searcherManager (
https://lucene.apache.org/core/7_4_0/core/org/apache/lucene/search/SearcherManager.html)
and get a little confused on applyAllDeletes parameter in the constructor
and the method maybeRefresh(). In our case, we need to search over
refr
Hi Marcos
The indexing looks kind of
Document doc =new Document();
float[] vector = getEmbedding(text);
FieldType vectorFieldType = KnnVectorField.createFieldType(vector.length,
VectorSimilarityFunction.COSINE);
KnnVectorField vectorField =new KnnVectorField("my_vector_field", vector,
vectorFi
Hi all,
I'm willing to use Vector Search with Lucene.
I have vectors created for queries and documents outside Lucene.
I would like to upload the document vectors to a Lucene index, Then use
Lucene to filter the documents (like classical search) and rank the
remaining products with the Vectors.