lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gus Heck (JIRA)" <>
Subject [jira] [Commented] (SOLR-9499) Streaming Expression Cannot sort on aliased field
Date Sun, 11 Sep 2016 18:20:20 GMT


Gus Heck commented on SOLR-9499:

I'm wondering if the code for this should be using SortSpecParsing (at least when using /select)...
right now it simply splits on ',' which also fails on functions that contain commas (which
work just fine in fl again, but not in sort). Of course the difficulty with that is that SortSpecParsing
wants either an IndexSchema or a Request... 

This may also be pushing beyond intentions for streaming, but the docs seem to suggest that
qt=/export is subject to /export restrictions and qt=/select is not restricted... 

bq. The /export handler is not used by default because it has stricter requirements then the
/select handler so it's not as easy to get started working with. To read more about the /export
handler requirements review the section Exporting Result Sets.

> Streaming Expression Cannot sort on aliased field 
> --------------------------------------------------
>                 Key: SOLR-9499
>                 URL:
>             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
> or
> search(test, rows=999999, q=table:article_p, fl="yi_pw,id,article:article_id", sort="article_id
> {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: -->
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

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

View raw message