lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Roman Kliewer (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (SOLR-2981) multiple stats.facet params duplicate stats faceting output
Date Wed, 15 Aug 2012 07:56:38 GMT

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

Roman Kliewer commented on SOLR-2981:
-------------------------------------

Hello, this is my first comment here.

The bug is caused by the call {{res.add(FACETS, nl)}} in [StatsValuesFactory|http://svn.apache.org/viewvc/lucene/dev/trunk/solr/core/src/java/org/apache/solr/handler/component/StatsValuesFactory.java?view=markup]
in the method {{getStatsValues()}}

The call is now within the facet iteration loop and adds the +same object+ {{nl}} multiple
times to the {{res}}. Just put the call outside of the loop to fix. 

[^SOLR-2981.patch]
                
> multiple stats.facet params duplicate stats faceting output
> -----------------------------------------------------------
>
>                 Key: SOLR-2981
>                 URL: https://issues.apache.org/jira/browse/SOLR-2981
>             Project: Solr
>          Issue Type: Bug
>    Affects Versions: 3.5
>            Reporter: Hoss Man
>         Attachments: SOLR-2981.patch
>
>
> * Load the example data
> * Load a URL that uses "stats.facet" on multiple fields, ie: http://localhost:8983/solr/select?q=*:*&stats=true&stats.field=price&stats.field=popularity&stats.twopass=true&rows=00&indent=true&stats.facet=inStock&stats.facet=manu_id_s
> Response will include two identical "facets" lists for each stats field (ie both "facets"
blocks will contain the faceted stats for both of the stats.facet fields)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message