[
https://issues.apache.org/jira/browse/LUCENE-7736?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15963986#comment-15963986
]
Adrien Grand commented on LUCENE-7736:
--------------------------------------
bq. So have an AssertingDoubleValuesSource? I like that idea, although I'm not
sure where it would get injected into the tests.
It is indeed harder than with eg. AssertingWeight. I guess one option would be
to unwrap instances of {{FunctionScoreQuery}} and {{FunctionMatchQuery}} in
{{AssertingIndexSearcher.rewrite}} to replace the values source with an
asserting instance. However, I can't think of an easy way to do something
similar when values sources are used for eg. sorting. Another option would be
to put those assertions directly into existing implementations.
> 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
>
>
> 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]