lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hoss Man (JIRA)" <>
Subject [jira] [Commented] (SOLR-6024) StatsComponent does not work for docValues enabled multiValued fields
Date Thu, 04 Sep 2014 17:40:57 GMT


Hoss Man commented on SOLR-6024:

bq. This patch includes the last changes in trunk plus the changes needed for branch 4x.
It also include DocValuesStats (should probably be merged from trunk instead)

thanks tomas, looks good to me - currently running precommit (and another round of tests just
to be safe) on 4x and then i'll commit.

FWIW, here's my backporting steps...

# NOTE: working dir is 4x checkout, ../dev is trunk checkout...

svn merge -c 1622386 ../dev/

# manually massaged schema11.xml, per Tomas's 4x patch
# confirm all tests *except* the new StatsComponentTest pass

# manually copy from Tomas's 4x patch
# confirm StatsComponentTest passes now

svn add solr/core/src/java/org/apache/solr/request/

svn merge --record-only -c 1594441 ../dev solr/core/src/java/org/apache/solr/request/
svn merge --record-only -c 1594445 ../dev solr/core/src/java/org/apache/solr/request/
svn merge --record-only -c 1595259 ../dev solr/core/src/java/org/apache/solr/request/
svn merge --record-only -c 1600688 ../dev solr/core/src/java/org/apache/solr/request/
svn merge --record-only -c 1602997 ../dev solr/core/src/java/org/apache/solr/request/

> StatsComponent does not work for docValues enabled multiValued fields
> ---------------------------------------------------------------------
>                 Key: SOLR-6024
>                 URL:
>             Project: Solr
>          Issue Type: Bug
>          Components: SearchComponents - other
>    Affects Versions: 4.8
>         Environment: java version "1.7.0_45"
> Mac OS X Version 10.7.5
>            Reporter: Ahmet Arslan
>              Labels: StatsComponent, docValues, multiValued
>             Fix For: 4.9
>         Attachments: SOLR-6024-branch_4x.patch, SOLR-6024-trunk.patch, SOLR-6024-trunk.patch,
SOLR-6024-trunk.patch, SOLR-6024-trunk.patch, SOLR-6024-trunk.patch, SOLR-6024.patch, SOLR-6024.patch
> Harish Agarwal reported this in solr user mailing list :
> It is east to re-produce with default example solr setup. Following types are added example
schema.xml. And exampledocs are indexed.
> {code:xml}
>  <field name="cat" type="string" indexed="true" stored="true" docValues="true" multiValued="true"/>
>   <field name="popularity" type="int" indexed="true" stored="false" docValues="true"
> {code}
> When {{docValues="true"}} *and* {{multiValued="true"}} are used at the same time, StatsComponent
throws :
> {noformat}
> ERROR org.apache.solr.core.SolrCore  – org.apache.solr.common.SolrException: Type mismatch:
popularity was indexed as SORTED_SET
> 	at org.apache.solr.request.UnInvertedField.<init>(
> 	at org.apache.solr.request.UnInvertedField.getUnInvertedField(
> 	at org.apache.solr.handler.component.SimpleStats.getStatsFields(
> 	at org.apache.solr.handler.component.SimpleStats.getStatsCounts(
> 	at org.apache.solr.handler.component.StatsComponent.process(
> 	at org.apache.solr.handler.component.SearchHandler.handleRequestBody(
> 	at org.apache.solr.handler.RequestHandlerBase.handleRequest(
> 	at org.apache.solr.core.SolrCore.execute(
> {noformat}

This message was sent by Atlassian JIRA

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

View raw message