Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Disable parallel collection in top hits aggregator
TopHitsAggregator calls TopFieldCollector#populateScores from each slice, which in turn relies on createWeight calls against the searcher. This means that the createWeight call gets parallelized with Lucene 9.9, but it should not as we are already executing multiple slices concurrently. We have protecions in place in Lucene to avoid this problem, but we have to adapt our execution code in ContextIndexSearcher accordingly. The goal is to utilize plain TaskExecutor from Lucene and avoid code duplication. In the meantime, we can disable concurrency for top hits aggregations as it causes actual issues currently in the lucene_snapshot branch.
- Loading branch information