[
https://issues.apache.org/jira/browse/LUCENE-7736?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Alan Woodward updated LUCENE-7736:
----------------------------------
Attachment: LUCENE-7736.patch
Here is a patch, implementing all the IndexReader-specific ValueSources as
DoubleValuesSource (or LongValuesSource, in the case of norms), and adding a
couple of extra ones that were missing (docCount, sumDocFreq, numDeletedDocs).
The IndexReaderFunctions class is currently in the queries module, but it could
easily be in core instead.
I haven't added the Similarity-specific sources here (idf, tf) - they could
maybe added directly to TFIDFSimilarity in another issue
> Expose some IndexReader stats via DoubleValuesSources
> -----------------------------------------------------
>
> Key: LUCENE-7736
> URL: https://issues.apache.org/jira/browse/LUCENE-7736
> Project: Lucene - Core
> Issue Type: New Feature
> Reporter: Alan Woodward
> Assignee: Alan Woodward
> Priority: Minor
> Attachments: LUCENE-7736.patch
>
>
> We have a number of ValueSource implementations that expose IndexReader stats
> (numDocs, termFreq, etc). We should re-implement these as
> DoubleValuesSources, allowing them to be used in FunctionScoreQuery, etc.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]