Shai Erera created LUCENE-4164:
----------------------------------

             Summary: Improve IndexWriter.addIndexes(IndexReader javadocs)
                 Key: LUCENE-4164
                 URL: https://issues.apache.org/jira/browse/LUCENE-4164
             Project: Lucene - Java
          Issue Type: Improvement
          Components: core/index
            Reporter: Shai Erera
            Assignee: Shai Erera
            Priority: Trivial
             Fix For: 4.0, 5.0


IndexWriter.addIndexes(IndexReader) needs some improvements:

* It falsely states that this method blocks any add/delete documents attempts.

* It merges all input IndexReaders at once, and not e.g. like MergePolicy does 
at mergeFactor steps. Therefore I think it'd be good to clarify it to the user, 
and also encourage him to call this method several times if he has many 
IndexReaders to merge.
** And while at it, mentioning that the IR can be opened with 
termIndexInterval=-1 since we don't need it during merge will be good -- saves 
RAM.

I'll attach a patch shortly.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to