You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Michael McCandless (JIRA)" <ji...@apache.org> on 2016/12/12 10:26:58 UTC
[jira] [Commented] (LUCENE-7590) Add DocValues statistics helpers
[ https://issues.apache.org/jira/browse/LUCENE-7590?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15741562#comment-15741562 ]
Michael McCandless commented on LUCENE-7590:
--------------------------------------------
Thanks [~shaie].
Maybe instead of a new stepping-stone class that the user must invoke, {{DocsAndContexts}}, you could just define a functional interface:
{noformat}
(LeafReaderContext ctx) -> DocIdSetIterator
{noformat}
And then maybe instead of a new class that computes stats in its ctor, {{NumericLongDocValuesStats}}, you could offer a static method instead, taking a top-level reader and the above function, that computes the stats and returns a results class holding the min/max/mean/etc.? Seems like that might be a simpler way to expose the functionality...
> Add DocValues statistics helpers
> --------------------------------
>
> Key: LUCENE-7590
> URL: https://issues.apache.org/jira/browse/LUCENE-7590
> Project: Lucene - Core
> Issue Type: New Feature
> Components: modules/misc
> Reporter: Shai Erera
> Assignee: Shai Erera
> Attachments: LUCENE-7590.patch
>
>
> I think it can be useful to have DocValues statistics helpers, that can allow users to query for the min/max/avg etc. stats of a DV field. In this issue I'd like to cover numeric DV, but there's no reason not to add it to other DV types too.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org