mikemccand / luceneutil

Various utility scripts for running Lucene performance tests
Apache License 2.0
203 stars 114 forks source link

Run search tasks in IndexSearcher's executor. #286

Closed jpountz closed 3 months ago

jpountz commented 3 months ago

IndexSearcher was recently updated to make the calling thread contribute to search execution. This means that searching with an executor of 8 threads uses 9 threads in practice if IndexSearcher#search is called from outside of the executor. This change moves the IndexSearcher#search call to the executor to better honor luceneutil's -searchConcurrency parameter.