[ 
https://issues.apache.org/jira/browse/LUCENE-7590?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15743089#comment-15743089
 ] 

Shai Erera commented on LUCENE-7590:
------------------------------------

bq. Let's implement the computation of these stats by writing a Collector and 
use a MatchAllDocsQuery?

At first I thought this is an overkill, but a {{Collector}} will allow 
computing them for documents that match another query. I will explore that 
option.

bq. Why is missing undefined when count is zero?

I thought that if you have no documents in the index at all, then {{missing}} 
is undefined, but now that you ask the question, I guess in that case it's fine 
if it's {{0}}, like {{count}}. I'll change the docs.

> 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, LUCENE-7590.patch, 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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to