lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alan Woodward (JIRA)" <>
Subject [jira] [Updated] (LUCENE-7736) Expose some IndexReader stats via DoubleValuesSources
Date Wed, 18 Oct 2017 09:52:00 GMT


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

> Expose some IndexReader stats via DoubleValuesSources
> -----------------------------------------------------
>                 Key: LUCENE-7736
>                 URL:
>             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

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message