lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tim Smith (JIRA)" <j...@apache.org>
Subject [jira] Commented: (LUCENE-2071) Allow updating of IndexWriter SegmentReaders
Date Tue, 30 Mar 2010 13:12:27 GMT

    [ https://issues.apache.org/jira/browse/LUCENE-2071?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12851388#action_12851388
] 

Tim Smith commented on LUCENE-2071:
-----------------------------------

+1

I have a special subclassed IndexSearcher that certain special queries require, so IndexWriter's
delete by query will fail as an IndexSearcher is passed in

With this added method, i would be able to construct my own Searcher over the readers and
then apply deletes properly

This would also allow counting the deletes as they occur as well (which is commonly desired
when deleting by query)


It would be nice if this method would also work with non-pooled readers

so my desired method signature would be:
void updateReaders(Readers callback, boolean pooled)

if the readers were already pooled, this would have no effect, otherwise it would just open
the segment readers just like the non-pooled delete readers are opened

> Allow updating of IndexWriter SegmentReaders
> --------------------------------------------
>
>                 Key: LUCENE-2071
>                 URL: https://issues.apache.org/jira/browse/LUCENE-2071
>             Project: Lucene - Java
>          Issue Type: Improvement
>          Components: Index
>    Affects Versions: 2.9.1
>            Reporter: Jason Rutherglen
>            Priority: Minor
>             Fix For: 3.1
>
>         Attachments: LUCENE-2071.patch
>
>
> This discussion kind of started in LUCENE-2047.  Basically, we'll allow users to perform
delete document, and norms updates on SegmentReaders that are handled by IndexWriter.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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


Mime
View raw message