SearcherManager should return new IndexSearchers every time [LUCENE-10664]
Open
legacy-jira-priority:Major
type:bug
- Dominant language
- Java
- Stars
- 3.6k
- Forks
- 1.4k
- Avg merge
- 2d 11h
- Merged PRs (30d)
- 88
Description
SearcherManager caches IndexSearcher instances. This is no longer a good approach now that IndexSearcher has timeout support (#11188) and keeps track of the time until which queries are allowed to run.
---
Migrated from [LUCENE-10664](https://issues.apache.org/jira/browse/LUCENE-10664) by Adrien Grand (@jpountz), updated Aug 02 2022
Contributor guide
Research direction
Start by locating SearcherManager and its IndexSearcher creation and caching behavior, then read the related IndexSearcher timeout support. Confirm how callers obtain searchers and what tests cover this lifecycle; done means each requested searcher is new while existing timeout behavior remains correct.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- search
- Issue type
- Refactor
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100