lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael McCandless (JIRA)" <>
Subject [jira] Created: (LUCENE-1659) Make readOnly setting to / IndexSearcher ctor explicit
Date Sun, 24 May 2009 16:16:45 GMT
Make readOnly setting to / IndexSearcher ctor explicit

                 Key: LUCENE-1659
             Project: Lucene - Java
          Issue Type: Improvement
          Components: Index
            Reporter: Michael McCandless
            Assignee: Michael McCandless
             Fix For: 2.9

Most apps don't need writable IndexReader, and, a readOnly IndexReader
has better concurrent performance.

I'd love to simply default readOnly to true, and you'd have to specify
"false" if you want a read/write reader (I think that's the natural
default), but that'd likely break too many back-compat cases.

So the workaround is to make the parameter explicit, in 2.9.

I think even for IndexSearcher's methods that open an IndexReader
under the hood, we should also make the parameter explicit.

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:
For additional commands, e-mail:

View raw message