Re: Query on SoftUpdateDocument API

2025-02-21 Thread Adrien Grand
Hi Abhishek, Actually softUpdate is about doing an update where the deletion is performed via a soft delete rather than a hard delete. To perform doc-value updates, you need to use the updateNumericDocValue or updateBinaryDocValue APIs. Note that it doesn't actually update in-place, it needs to

lucene-replicator: how to correctly reset NRT version

2025-02-21 Thread Steven Schlansker
Hi Lucene friends, We use the replicator module to implement log-shipping replication for our Lucene cluster. We have an offline "rebuild everything" process for use when indexing or data formats change. We have a single primary node that only serves the IndexWriter and replicator api, and the

Query on SoftUpdateDocument API

2025-02-21 Thread Abhishek Chandran
Hello, Lucene community! I am reaching out to you to seek help with one of the updated APIs. I have a use case where I need to update the Lucene document's docValue fields in place, i.e., without creating a new document with every update. I believe softUpdateDocument should help me achieve this,

Re: Looking for resources to understand query cost/complexity

2025-02-21 Thread Adrien Grand
This depends on many factors, but in my experience these two are good starting points: - Total number of matching docs of the query. - Number of segments times number of terms being looked up. This is a simplified model, some queries incur their own costs, e.g. phrase queries bottleneck on evalu