lucene-dev mailing list archives

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


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

> multiple stats.facet params duplicate stats faceting output
> -----------------------------------------------------------
>                 Key: SOLR-2981
>                 URL:
>             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:!default.jspa
For more information on JIRA, see:


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message