Skip to content

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

@asfimport

Description

@asfimport

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 by David Smiley (@dsmiley)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions