You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Adrien Grand (JIRA)" <ji...@apache.org> on 2016/04/26 18:36:12 UTC

[jira] [Commented] (LUCENE-7257) PointValues aggregated stats fail if the provided field does not have points on one of the leaves

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

Adrien Grand commented on LUCENE-7257:
--------------------------------------

Alternatively we could throw an exception if none of the leaves have points for the given field, but then I was not sure what should happen in the case of an empty index since it could either be that no documents have ever been indexed or that they were indexed in the past but then got all deleted.

> PointValues aggregated stats fail if the provided field does not have points on one of the leaves
> -------------------------------------------------------------------------------------------------
>
>                 Key: LUCENE-7257
>                 URL: https://issues.apache.org/jira/browse/LUCENE-7257
>             Project: Lucene - Core
>          Issue Type: Bug
>            Reporter: Adrien Grand
>            Assignee: Adrien Grand
>            Priority: Minor
>         Attachments: LUCENE-7257.patch
>
>
> The static helpers on PointValues to get aggregated size/docCount/minPackedValue/maxPackedValue fail if a leaf has points indexed (so that getPointValues() returns a non-null value) but not for the given field. In that case PointValues.size() throws an exception.



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