Re: new to lucene- some questions regarding internals

2015-08-11 Thread Erick Erickson
1-3 are really answered by the same explanation: When you open a searcher, lucene "knows" what all the closed segments are (i.e., the last commit point). And you can't commit when only part of a document has been written to the current segment. You can think of commits as atomic at the document le

new to lucene- some questions regarding internals

2015-08-11 Thread Yechiel Feffer
Hi 1. as I understand Lucene is preparing the documents of the search result in a lazy fashion- using the docId in the ScoreDoc. What happens if the document "pointed" by the ScoreDoc is deleted meanwhile i.e. the DocId is not relevant (maybe assigned to a different document) ? 2. when a docu