apache / apache/lucene

Instrument IndexOrDocValuesQuery to report on its decisions

Open
#13,442 3 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

For Amazon Product Search, we use `IndexOrDocValuesQuery` and have changed it to take a listener type object that records and reports on the decision the query has made. We look at how often it picks indexed vs doc values and we can see if there are changes in the frequency with which we take each branch. Would this be a welcome addition?

Contributor guide

Open the contributing guide

Research direction

Start by locating IndexOrDocValuesQuery and examining how it chooses between indexed values and doc values. Define the listener API and reporting behavior with the maintainers, then add coverage showing that each decision is reported correctly.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
observability, search
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.