Re: TieredMergePolicy disrupts doc id order after merge

2017-09-28 Thread Yonghui Zhao
Got it, thanks Uwe! 2017-09-29 1:39 GMT+08:00 Uwe Schindler : > Hi, > > Use another merge policy, see LogMergePolicy subclasses! Those preserve > order, but are not merging in ideal ways. > > In general: Relying on internal Lucene DocIDs is not guaranteed to work, > this is only an implementation

RE: TieredMergePolicy disrupts doc id order after merge

2017-09-28 Thread Uwe Schindler
Hi, Use another merge policy, see LogMergePolicy subclasses! Those preserve order, but are not merging in ideal ways. In general: Relying on internal Lucene DocIDs is not guaranteed to work, this is only an implementation detail. The internal IDs are also not stable!!! Uwe - Uwe Schindler