You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Tomás Fernández Löbbe (JIRA)" <ji...@apache.org> on 2014/09/09 23:01:32 UTC

[jira] [Comment Edited] (SOLR-6452) StatsComponent "missing" stat won't work with docValues=true and indexed=false

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

Tomás Fernández Löbbe edited comment on SOLR-6452 at 9/9/14 9:01 PM:
---------------------------------------------------------------------

Thanks for the patch [~simpleBread]. As an optimization, why don't you make the {{missingStats}} a {{Map<Integer, Integer>}} and use the ords as keys instead of the terms. That way you don't need to do the lookupOrd for all docs, and you do it only once per term in the {{accumulateMissing()}} method. 


was (Author: tomasflobbe):
Thanks for the patch Xu. As an optimization, why don't you make the {{missingStats}} a {{Map<Integer, Integer>}} and use the ords as keys instead of the terms. That way you don't need to do the lookupOrd for all docs, and you do it only once per term in the {{accumulateMissing()}} method. 

> StatsComponent "missing" stat won't work with docValues=true and indexed=false
> ------------------------------------------------------------------------------
>
>                 Key: SOLR-6452
>                 URL: https://issues.apache.org/jira/browse/SOLR-6452
>             Project: Solr
>          Issue Type: Bug
>    Affects Versions: 5.0, 4.10
>            Reporter: Tomás Fernández Löbbe
>         Attachments: SOLR-6452-trunk.patch, SOLR-6452-trunk.patch
>
>
> StatsComponent can work with DocValues, but it still required to use indexed=true for the "missing" stat to work. Missing values should be obtained from the docValues 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