apache / apache/lucene

Easy access TermStates's needStats flag

Open
#12,617 0 comments 0 reactions 0 assignees View on GitHub
type:enhancement
Dominant language
Java
Stars
3.6k
Forks
1.4k
Avg merge
2d 11h
Merged PRs (30d)
88

Description

### Description

When we build TermStates we pass a flag needStats to determine if we want to front loading all term statistics, however, we did not have easy access to know if this flag has been set to true or not. This will just be a simple PR that add an api to check if the term is not null.

Contributor guide

Open the contributing guide

Research direction

Start by locating TermStates and inspect how its needStats value is stored or used. Add the requested API for checking whether statistics were requested, then verify that the result reflects the flag for both enabled and disabled cases.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
search
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
58/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.