On Tue, Nov 6, 2012 at 1:04 AM, Ravikumar Govindarajan <ravikumar.govindara...@gmail.com> wrote: > Looks far more complex than I had assumed!!!
I think it would be a major undertaking. > An invariant of "non-decreasing docid per flush", if pushed to the app can > save lucene from handling the complex sparse data logic no? > > Lucene can hold it's existing logic without major changes, detect any > out-of-order doc before every flush and emit an error. We could do that, though the sparseness problem remains, eg if the app adds docID=1 and then docID=10000 ... > I understand that multi-threaded indexing and such concerns also need to be > handled by the app, but thats what apps get when trying to control docIDs In 4.0 (an improvement over 3.6) each thread writes to its own private segment ... so as long as one thread always indexed docs in monotonic order that could in theory work ... Mike McCandless http://blog.mikemccandless.com --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org For additional commands, e-mail: java-user-h...@lucene.apache.org