Mikhail Khludnev created SOLR-12871:
---------------------------------------

             Summary: sort=childfield(currency_field) desc fails with exception 
about REWRITABLE field type
                 Key: SOLR-12871
                 URL: https://issues.apache.org/jira/browse/SOLR-12871
             Project: Solr
          Issue Type: Bug
      Security Level: Public (Default Security Level. Issues are Public)
          Components: query parsers
    Affects Versions: 6.6
            Reporter: Mikhail Khludnev


When searching by bjq and sorting by matching child currency field like 
{{sort=childfield(currency_field) desc}} it fails with 
{code}
UnsupportedOperationException: Sort type REWRITEABLE is not supported
    at 
org.apache.lucene.search.join.ToParentBlockJoinSortField.<init>(ToParentBlockJoinSortField.java:65)
{code}
At least it's good to start documenting workaround. Btw why don't allow 
functions over children just by rewriting underneath sort field?  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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

Reply via email to