Allow projection of Lucene DocId

Description

It would be nice if the Lucene docid could be projected from a query so that TokenSources.getAnyTokenStream(IndexReader reader, int docId, String field, Analyzer analyzer) can be used.

This function has the advantage that it extracts the token stream from Lucene without reparsing if it is able to. If it is unable, it will reparse the stored field with the given analyzer.

Environment

None

Status

Assignee

Unassigned

Reporter

Labels

None

Suitable for new contributors

None

Pull Request

None

Feedback Requested

None

Fix versions

Affects versions

3.0.0.GA

Priority

Minor