You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Alan Woodward (JIRA)" <ji...@apache.org> on 2017/03/10 09:21:04 UTC
[jira] [Updated] (LUCENE-7736) Expose some IndexReader stats via
DoubleValuesSources
[ 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: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org