[ https://issues.apache.org/jira/browse/LUCENE-1657?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Michael McCandless resolved LUCENE-1657. ---------------------------------------- Resolution: Fixed > Make "boolean readOnly" a required arg to IndexReader.open > ---------------------------------------------------------- > > Key: LUCENE-1657 > URL: https://issues.apache.org/jira/browse/LUCENE-1657 > Project: Lucene - Java > Issue Type: Improvement > Components: Index > Reporter: Michael McCandless > Assignee: Michael McCandless > Priority: Minor > Fix For: 2.9 > > Attachments: LUCENE-1657.patch > > > Most apps don't need read/write 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 I think that'd 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: java-dev-unsubscr...@lucene.apache.org For additional commands, e-mail: java-dev-h...@lucene.apache.org