apache / apache/lucene

add function queries for all index statistics [LUCENE-3427]

Open
#4,500 0 comments 0 reactions 0 assignees View on GitHub
affects-version:4.0-ALPHA legacy-jira-priority:Major type:enhancement
Dominant language
Java
Stars
3.6k
Forks
1.4k
Avg merge
2d 11h
Merged PRs (30d)
88

Description

I think we have most of them, but at least the following are missing:
- getDocCount (# of documents that contain a value for a field)
- sumDocFreq (# of postings for a field)

not sure if there are others that don't have function queries.

---
Migrated from [LUCENE-3427](https://issues.apache.org/jira/browse/LUCENE-3427) by Robert Muir (@rmuir)

Contributor guide

Open the contributing guide

Research direction

Start by inventorying the existing function queries and the index statistics they cover. Use getDocCount and sumDocFreq as initial entry points, then determine which other statistics lack function queries; done means the missing statistics have corresponding function queries.

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
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.