[ 
https://issues.apache.org/jira/browse/SOLR-7052?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Vitaliy Zhovtyuk updated SOLR-7052:
-----------------------------------
    Attachment: SOLR-7052.patch

I was not able to compile tag lucene_solr_4_8_1 becuase of final modifier on 
org.apache.lucene.codecs.memory.DirectDocValuesProducer#data, 
org.apache.lucene.codecs.lucene42.Lucene42DocValuesProducer#data, 
org.apache.lucene.codecs.lucene45.Lucene45DocValuesProducer#data, 
org.apache.lucene.codecs.memory.MemoryDocValuesProducer#data (removed final 
modifier and added to patch)
Added case with docValues on single and distributed grouping.
Issue reproduced in distributed mode on solr 4.8.1, but not reproduced solr 
trunk. The reason: numeric fields with docValues executed in 
org.apache.lucene.search.grouping.term.TermFirstPassGroupingCollector where 
binary and number with docValues are checked in 
org.apache.lucene.search.FieldCacheImpl#getTermsIndex(org.apache.lucene.index.AtomicReader,
 java.lang.String, float).
Added check for numeric fields to skip this collector. 
Backported changes from solr trunk LUCENE-5666: remove insanity during 
distributed grouping

> Grouping on int field with docValues in SolrCloud raises exception.
> -------------------------------------------------------------------
>
>                 Key: SOLR-7052
>                 URL: https://issues.apache.org/jira/browse/SOLR-7052
>             Project: Solr
>          Issue Type: Bug
>          Components: SolrCloud
>    Affects Versions: 4.8.1
>            Reporter: Beliy
>              Labels: SolrCloud, docValues, grouping
>         Attachments: SOLR-7052.patch
>
>
> We have a grouping field which we defined as an integer; when we run a query 
> grouping on that field it works fine in a non-cloud configuration, but when 
> we try the same query in a SolrCloud configuration with multiple shards, we 
> get the following error:
> Type mismatch: <fieldName> was indexed as NUMERIC
> Schema:
> {code:xml}
> <dynamicField name="*_i"  type="int"    indexed="true"  stored="true" 
> docValues="true"/>
> {code}
> Query:
> {code}
> q=*:*&group=true&group.field=<fieldName>&group.limit=1
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to