Allow WeightedSpanTermExtractor to collect positions for TermQuerys [LUCENE-3304]
- Dominant language
- Java
- Stars
- 3.6k
- Forks
- 1.4k
- Avg merge
- 2d 11h
- Merged PRs (30d)
- 88
Description
Spinoff from this thread:
http://www.gossamer-threads.com/lists/lucene/java-user/129668
Currently WeightedSpanTermExtractor only collects positions for "position sensitive" queries. Allowing WeightedSpanTermExtractor to store positions for TermQuery would enable the WeightedSpanTermExtractor to be used outside the highlighter in custom plugins to get positions information.
---
Migrated from [LUCENE-3304](https://issues.apache.org/jira/browse/LUCENE-3304) by Jahangir Anwari
Contributor guide
Research direction
Locate WeightedSpanTermExtractor in Lucene's highlighter code and trace how it handles position-sensitive queries versus TermQuery. Confirm how positions are represented for the extractor, then verify that TermQuery positions are collected without changing existing highlighter behavior. Done means custom plugins can obtain positions for TermQuery through the extractor.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- search
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100