apache / apache/lucene

Easier way to access ValueSource given docid [LUCENE-4541]

Open
#5,607 1 comment 0 reactions 0 assignees View on GitHub
legacy-jira-priority:Minor type:enhancement
Dominant language
Java
Stars
3.6k
Forks
1.4k
Avg merge
2d 11h
Merged PRs (30d)
88

Description

I was working on improving some sample code and I needed to access a value via a ValueSource given a docid in search results. I was disappointed to see how many steps were needed. Incidentally, Solr had to solve the same problem, and it's got ValueSourceAugmenter for this. I propose a small utility class be created to do something similar, such that the client can merely create an instance and then call a method with a doc id to retrieve the value.

---
Migrated from [LUCENE-4541](https://issues.apache.org/jira/browse/LUCENE-4541) by David Smiley (@dsmiley)

Contributor guide

Open the contributing guide

Research direction

Start by reviewing Lucene's ValueSource API and Solr's ValueSourceAugmenter, both named in the issue, to understand the existing steps for retrieving a value by document ID. Done means providing a small utility that lets a client create an instance and retrieve the ValueSource value with a doc ID.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.