lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gus Heck (JIRA)" <j...@apache.org>
Subject [jira] [Created] (SOLR-9499) Streaming ExpressionCannot sort on aliased field
Date Sun, 11 Sep 2016 17:56:20 GMT
Gus Heck created SOLR-9499:
------------------------------

             Summary: Streaming ExpressionCannot sort on aliased field 
                 Key: SOLR-9499
                 URL: https://issues.apache.org/jira/browse/SOLR-9499
             Project: Solr
          Issue Type: Bug
      Security Level: Public (Default Security Level. Issues are Public)
          Components: search
    Affects Versions: 6.2
         Environment: 6.2.0_RC1
            Reporter: Gus Heck
            Priority: Minor


an expression such as:

{code}
search(test, rows=999999, q=table:article_p, fl="yi_pw,id,article:article_id", sort="article
asc") 

or

search(test, rows=999999, q=table:article_p, fl="yi_pw,id,article:article_id", sort="article_id
asc") 
{code}

results in: 
{code}
{"result-set":{"docs":[
{"EXCEPTION":"Fields in the sort spec must be included in the field list:article","EOF":true}]}}

or

{"result-set":{"docs":[
{"EXCEPTION":"Fields in the sort spec must be included in the field list:article_id","EOF":true}]}}
{code}

and 
{code}
{"result-set":{"docs":[
{"EXCEPTION":"Fields in the sort spec must be included in the field list:article:article_id","EOF":true}]}}
{code}

yeilds 

{code}
{"result-set":{"docs":[
{"EXCEPTION":"java.util.concurrent.ExecutionException: java.io.IOException: --> http://10.1.3.9:8983/solr/test_shard1_replica1/:sort
param could not be parsed as a query, and is not a field that exists in the index: article:article_id","EOF":true,"RESPONSE_TIME":5}]}}
{code}

If I sort by id instead, it all works fine. 



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


Mime
View raw message