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/12 15:41:04 UTC

[jira] [Updated] (LUCENE-7741) Add explain() to DoubleValues

     [ https://issues.apache.org/jira/browse/LUCENE-7741?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alan Woodward updated LUCENE-7741:
----------------------------------
    Attachment: LUCENE-7741.patch

Here is a patch.  I tried adding this to both DoubleValuesSource and DoubleValues, and the latter turns out to be much less invasive.  It requires that DoubleValues are created with a string description, which is then used both for toString() and for the default explain().  Specialised DoubleValues can then override explain() if they want to present more complex or involved Explanations.

> Add explain() to DoubleValues
> -----------------------------
>
>                 Key: LUCENE-7741
>                 URL: https://issues.apache.org/jira/browse/LUCENE-7741
>             Project: Lucene - Core
>          Issue Type: Improvement
>            Reporter: Alan Woodward
>            Assignee: Alan Woodward
>         Attachments: LUCENE-7741.patch
>
>
> As noted on LUCENE-7737, it would be nice to be able to get an explanation for DoubleValues values, particularly for things like complex spatial distance calculations.



--
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