Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-12871

sort=childfield(currency_field) desc fails with exception about REWRITABLE field type

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 6.6
    • Fix Version/s: None
    • Component/s: query parsers
    • Labels:
      None

      Description

      When searching by bjq and sorting by matching child currency field like 
      sort=childfield(currency_field) desc it fails with

      UnsupportedOperationException: Sort type REWRITEABLE is not supported
          at org.apache.lucene.search.join.ToParentBlockJoinSortField.<init>(ToParentBlockJoinSortField.java:65)
      

      At least it's good to start documenting workaround. Btw why don't allow functions over children just by rewriting underneath sort field?  

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                mkhludnev Mikhail Khludnev
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated: