You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Mikhail Khludnev (JIRA)" <ji...@apache.org> on 2018/10/15 19:15:00 UTC

[jira] [Created] (SOLR-12871) sort=childfield(currency_field) desc fails with exception about REWRITABLE field type

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-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org