lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael McCandless (JIRA)" <>
Subject [jira] Commented: (LUCENE-1558) Make IndexReader/Searcher ctors readOnly=true by default
Date Sun, 04 Oct 2009 09:35:56 GMT


Michael McCandless commented on LUCENE-1558:

bq.  Do you want to put them back again?

I think we should?  Ie, "readOnly=true" is the natural default for creating an IndexReader?
 Seems silly to force people to specify true/false when they create an IndexReader.  But maybe
wait until we reach closure on the config/builder discussion on java-dev?

> Make IndexReader/Searcher ctors readOnly=true by default
> --------------------------------------------------------
>                 Key: LUCENE-1558
>                 URL:
>             Project: Lucene - Java
>          Issue Type: Improvement
>    Affects Versions: 2.4.1
>            Reporter: Michael McCandless
>            Assignee: Michael McCandless
>             Fix For: 3.0
> Another "change the defaults" in 3.0.
> Right now you get a read/write reader from and new IndexSearcher(...),
and reserving the right to write causes thread contention (on isDeleted).
> In 3.0 let's make readOnly reader the default, but still allow opening a read/write IndexReader.

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