[ https://issues.apache.org/jira/browse/LUCENE-3760?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13208389#comment-13208389 ]
Shai Erera commented on LUCENE-3760: ------------------------------------ bq. I mean in the full picture of the application, is there another way? One of my use cases is a distributed system which receives 'delta' indexes that need to be merged with a bigger one. There, I open FSDirectory and use IndexWriter.addIndexes(dir). I don't need to load the IndexReader. What I do need though is read some time stamps and other metadata that I put in the index's commit data and merge that with the target index's commit data. bq. Opening an indexreader doesnt load norms until you ask for them, for example This is from SegmentReader's ctor. I followed IndexReader.open() and reached it, without any 'ifs' (unless I missed something): {code} instance.core = new SegmentCoreReaders(instance, dir, si, readBufferSize, termInfosIndexDivisor); if (doOpenStores) { instance.core.openDocStores(si); } instance.loadDeletedDocs(); instance.openNorms(instance.core.cfsDir, readBufferSize); {code} It does load the norms and deleted docs (and maybe even doc stores). bq. Well its still available in 3.x as deprecated methods... were you planning on making a patch against 3.x for LUCENE-3786 initially? There are two questions here: (1) Was I planning to support SearcherTaxoManager in 3.x -- YES (2) Was I planning to start with a patch against 3.x -- Not Necessarily. bq. here's an idea: how about we defer this discussion until we see your patch? If it makes sense for LUCENE-3786, then we have a valid use case? Why? Isn't the scenario that I described above enough? Maybe you tell me -- if all you need to do is addIndexes(Directory) and merge the Directory's commitUserData, would you agree to open an IndexReader just for reading the commit data? Don't you think it's too much? > Cleanup DR.getCurrentVersion/DR.getUserData/DR.getIndexCommit().getUserData() > ----------------------------------------------------------------------------- > > Key: LUCENE-3760 > URL: https://issues.apache.org/jira/browse/LUCENE-3760 > Project: Lucene - Java > Issue Type: Improvement > Reporter: Michael McCandless > Assignee: Michael McCandless > Fix For: 3.6, 4.0 > > Attachments: LUCENE-3760.patch, LUCENE-3760.patch > > > Spinoff from Ryan's dev thread "DR.getCommitUserData() vs > DR.getIndexCommit().getUserData()"... these methods are confusing/dups right > now. -- 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: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org