lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael McCandless <luc...@mikemccandless.com>
Subject Re: IndexReader.open(File, readOnly)
Date Wed, 05 Nov 2008 20:29:14 GMT

Well... I didn't add it (and open(String path, boolean readOnly))  
because I was hoping to keep the combinatoric explosion in check (eg  
IndexWriter's ctors scare me).

Also, looking forward to 3.0, when the plan is to have  
IndexReader.open return a readOnly reader by default, I think it  
should only be the complex/expert methods that take a readOnly param,  
on the thinking that most users would not need to change it.

But I don't feel very strongly about it -- if you think we need two  
more IndexReader.open's, I don't mind adding it...

Mike

Emmanuel Bernard wrote:

> Hello
> I was converting some code to 2.4 and realized that there is no  
> "read-only" version for the open method taking File as a parameter.
> Is that intentional? Should I open a JIRA issue?
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-dev-help@lucene.apache.org
>


---------------------------------------------------------------------
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