[
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
Patch bringing this up-to-date. Relevant changes are:
* IndexReaderFunctions is final, and I moved the constructor to the top for
Uwe's sake :)
* Everything implements hashCode and equals now, which means concrete
implementations rather than anonymous classes.
* One wrinkle here is that we can't compare closures, so
IndexReaderDoubleValuesSource only uses its description field for comparisons.
These are all private implementations, and there's a comment to that effect, so
I think this is OK.
I haven't added anything about checking for double-rewrite, as it doesn't
really matter for any of the current implementations - everything either
rewrites to a constant, or returns itself.
> 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, LUCENE-7736.patch, 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.4.14#64029)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]