You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Praveen (JIRA)" <ji...@apache.org> on 2016/08/17 16:24:20 UTC

[jira] [Created] (SOLR-9419) Unable to sort "multivalued field" while choosing aggregationMode=map_reduce

Praveen created SOLR-9419:
-----------------------------

             Summary: Unable to sort "multivalued field"  while choosing aggregationMode=map_reduce
                 Key: SOLR-9419
                 URL: https://issues.apache.org/jira/browse/SOLR-9419
             Project: Solr
          Issue Type: Bug
      Security Level: Public (Default Security Level. Issues are Public)
            Reporter: Praveen


I have  a input json like below

{ id:1,pid:73,name:praveen,inf:[1,2,3,4,5,6,7]}
{ id:2,pid:73,name:praveen,inf:[1,2,3,4,5,6,7]}
{ id:3,pid:73,name:praveen,inf:[1,2,3,4,5,6,7]}
{ id:4,pid:83,name:praveen,inf:[1,2,3,4,5,6,7]}
{ id:5,pid:83,name:praveen,inf:[1,2,3,4,5,6,7]}
{ id:6,pid:83,name:praveen,inf:[1,2,3,4,5,6,7]}

curl --data-urlencode "stmt=select pid,infs,count(*)  as count  from collection where pid=73 GROUP BY pid,infs ORDER BY count(*) desc  " http://localhost:8983/solr/collection/sql?aggregationMode=map_reduce


Exception :

{"result-set":{"docs":[
{"EXCEPTION":"java.util.concurrent.ExecutionException: java.io.IOException: --> http://localhost:8983/solr/collection_shard2_replica1/:can not sort on multivalued field: infs","EOF":true,"RESPONSE_TIME":19}]}}

Could you please on this. How to execute this query  using aggregationMode=map_reduce?

infs  field is multivalue .. Please help me to sort multivalue field.



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

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