Add a TermContextCache to IndexSearcher [LUCENE-6561]
- Dominant language
- Java
- Stars
- 3.6k
- Forks
- 1.4k
- Avg merge
- 2d 11h
- Merged PRs (30d)
- 88
Description
TermContexts can be quite expensive to build, and if you have fairly complex queries that re-use the same terms you can end up spending a lot of time re-building the same ones over and over again. It would be nice to be able to cache them on an IndexSearcher, so that they can be re-used.
---
Migrated from [LUCENE-6561](https://issues.apache.org/jira/browse/LUCENE-6561) by Alan Woodward (@romseygeek), updated Jun 15 2015
Attachments: [LUCENE-6561.patch](https://apache.github.io/lucene-jira-archive/attachments/LUCENE-6561/LUCENE-6561.patch) (versions: 2)
Contributor guide
Research direction
Start by reading the IndexSearcher and TermContext entry points, then compare the attached LUCENE-6561.patch with the current implementation. Determine how repeated terms are rebuilt during complex queries and define the cache's lifecycle and behavior. Done means repeated terms can reuse cached TermContexts on an IndexSearcher without changing query results.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- search
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100