lucene
lucene copied to clipboard
Apache Lucene open-source search software
Fewer volatile reads, less indirection and a fast-path for when there's no executor. Also, saving some copies, sorting array instead of list, and saving allocations all around. This PR is...
No need to go through the indirection of 2 wrapped functions, just put the logic in plain methods. Also, we can just outright set the field if there's no executor.
### Description Currently, we traverse the `BKD` tree or perform a binary search using `DocValues` first, and then check whether the count can be obtained in the `count()` method of...
I observed several `int[]` allocation related to `BKDPointTree`, we can use `DocIdsWriter#scratch` as the docIDs buffer for `BKDReaderDocIDSetIterator`.
### Description Description This change similars to https://github.com/apache/lucene/pull/13252.
### Description `ConcurrentMergeScheduler` computes max thread counts assuming a single `IndexWriter` in the JVM. But it's common with Solr or Elasticsearch to have tens of active `IndexWriter`s running in the...
Spinoff from #13867 to add the tooling back onto `branch_9_10` in case we ever need to regenerate the `int7_hnsw.9.10.0.zip` bwc index again.
### Description we see the scenarios like #13354, it would make abort waiting for merge finished, like #13354 and https://github.com/elastic/elasticsearch/issues/107513 elasticsearch #`removeIndex` or `stop shard`. Athough we can make close...
Even with the all-zero bit-length optimization recently introduced, these `Meta` instances tend to consume a non-trivial amount of heap still. We can do away with almost 40% of their size...
As the title said, we could use the skip functionality of the doc value sparse index to improve the performance of IndexSortSortedNumericDocValuesRangeQuery when the field is primary sort.