You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@lucene.apache.org by "iprithv (via GitHub)" <gi...@apache.org> on 2026/05/24 23:05:20 UTC

[I] add updateDocuments(Term, ColumnBatch) to IndexWriter for atomic delete-and-add columnar operations [lucene]

iprithv opened a new issue, #16117:
URL: https://github.com/apache/lucene/issues/16117

   ### Description
   
   The experimental columnar indexing API (`IndexWriter.addBatch(ColumnBatch)`) added supports bulk columnar document addition, but there is no equivalent to `updateDocuments(Term, Iterable)` 
   for columnar batches. Users who index via columns cannot atomically delete existing documents by term 
   and add a new columnar batch in a single operation.
   
   add the following public methods to `IndexWriter`
   
   ```java
   /**
    * Atomically deletes documents matching the provided term and adds a batch of documents 
    * in column-oriented format.
    */
   public long updateDocuments(Term delTerm, ColumnBatch columnBatch) throws IOException;
   
   /**
    * Similar to above but takes a Query instead of a Term.
    */
   public long updateDocuments(Query delQuery, ColumnBatch columnBatch) throws IOException;


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org


Re: [I] add updateDocuments(Term, ColumnBatch) to IndexWriter for atomic delete-and-add columnar operations [lucene]

Posted by "offsetflow (via GitHub)" <gi...@apache.org>.
offsetflow commented on issue #16117:
URL: https://github.com/apache/lucene/issues/16117#issuecomment-4668618101

   Hi, I’d like to take this issue if nobody is already working on it. I’ll look into adding the ColumnBatch variants of updateDocuments for both Term and Query deletes, along with tests covering the atomic delete-and-add behavior.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org


Re: [I] add updateDocuments(Term, ColumnBatch) to IndexWriter for atomic delete-and-add columnar operations [lucene]

Posted by "iprithv (via GitHub)" <gi...@apache.org>.
iprithv commented on issue #16117:
URL: https://github.com/apache/lucene/issues/16117#issuecomment-4530461422

   before I work on this, @Tim-Brooks @ChrisHegarty tagging you as you worked on #15990. Would appreciate your input, thanks!
   
   1. Should the methods be `updateDocuments(Term, ColumnBatch)` (overloading the existing row-oriented name) or `updateBatch(Term, ColumnBatch)` (new name matching `addBatch`)?
   2. Should both `Term` and `Query` deletion variants be included, or just `Term` to start?
   3. Should `softUpdateDocuments(Term, ColumnBatch, Field... softDeletes)` also be added for parity with the row-oriented `softUpdateDocuments(Term, Iterable, Field...)`?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org