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

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 6.6
    • None
    • query parsers
    • 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

              Unassigned Unassigned
              mkhl Mikhail Khludnev
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated: