Re: Question for customize index segment search order

2023-05-12 Thread Mikhail Khludnev
Hello, Wei. Pardon for pinging you back to the Lucene field. Here's the loop over segments https://github.com/apache/lucene/blob/main/lucene/core/src/java/org/apache/lucene/search/IndexSearcher.java#L674 So, presumably: - custom searcher may loop segments out of order - custom wrapper over index

Question for customize index segment search order

2023-05-11 Thread Wei
Hi , We have a index that has multiple segments generated with continuous updates. There is always a large dominant segment after index rebuild, then many small segments are generated with continuous updates. At query time we apply early termination with EarlyTerminatingCollector https://github.