apache / apache/lucene

SearcherManager should return new IndexSearchers every time [LUCENE-10664]

Open
#11,700 4 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.