Re: Fields, Index segments and docIds (second Try)

2014-05-01 Thread Olivier Binda
On 05/02/2014 06:05 AM, Shai Erera wrote: If you're always rebuilding, let alone forceMerge, you shouldn't have too much trouble implementing it. Just make sure that you add documents in the same order to all indexes. If you're always rebuilding, how come you have deletions? Anyway, you must als

Re: Fields, Index segments and docIds (second Try)

2014-05-01 Thread Shai Erera
If you're always rebuilding, let alone forceMerge, you shouldn't have too much trouble implementing it. Just make sure that you add documents in the same order to all indexes. If you're always rebuilding, how come you have deletions? Anyway, you must also delete in all indexes. On May 2, 2014 1:57

Re: Fields, Index segments and docIds (second Try)

2014-05-01 Thread Olivier Binda
On 05/01/2014 10:28 AM, Shai Erera wrote: I'm glad it helped you. Good luck with the implementation. Thanks. First I started looking at the lucene internal code. To understand when/where and why docIds are changing/need to be changed (in merge and doc deletions) . I have always wanted to unde

Re: Fields, Index segments and docIds (second Try)

2014-05-01 Thread Shai Erera
I'm glad it helped you. Good luck with the implementation. One thing I didn't mention (though it's in the jdocs) -- it's not enough to have the documents of each index aligned, you also have to have the segments aligned. That is, if both indexes have documents 0-5 aligned, but one index contains a