[ https://issues.apache.org/jira/browse/SOLR-1782?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Patanachai Tangchaisin updated SOLR-1782: ----------------------------------------- Attachment: SOLR-1782.solr-4.2.1.patch Here is patch for Solr 4.2.1. I copied a test cases from latest previous patch (SOLR-1782.2013-04-10.patch). Instead of modify UnInvertedField.java (it is too complex to modify), I used DocValues to get a value from a field to aggregate stats. We've used it in our production for some time now since we stuck on version 4.2.1 due to some of our requirement. However, our fields that need stats.facet is DocValues field. So, I hope the previous patch test case cover a case where multi-value field is not a DocValue. > stats.facet assumes FieldCache.StringIndex - fails horribly on multivalued > fields > --------------------------------------------------------------------------------- > > Key: SOLR-1782 > URL: https://issues.apache.org/jira/browse/SOLR-1782 > Project: Solr > Issue Type: Bug > Components: search > Affects Versions: 1.4 > Environment: reproduced on Win2k3 using 1.5.0-dev solr ($Id: > CHANGES.txt 906924 2010-02-05 12:43:11Z noble $) > Reporter: Gerald DeConto > Assignee: Hoss Man > Attachments: SOLR-1782.2.patch, SOLR-1782.2013-01-07.patch, > SOLR-1782.2013-04-10.patch, SOLR-1782.patch, SOLR-1782.patch, > SOLR-1782.patch, SOLR-1782.solr-4.2.1.patch, SOLR-1782.test.patch, index.rar > > > the StatsComponent assumes any field specified in the stats.facet param can > be faceted using FieldCache.DEFAULT.getStringIndex. This can cause problems > with a variety of field types, but in the case of multivalued fields it can > either cause erroneous false stats when the number of distinct values is > small, or it can cause ArrayIndexOutOfBoundsException when the number of > distinct values is greater then the number of documents. -- This message was sent by Atlassian JIRA (v6.2#6252) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org