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

sort by string field of the nested child when searching with {!parent}

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 6.6, 7.0
    • Component/s: None
    • Security Level: Public (Default Security Level. Issues are Public)
    • Labels:
      None

      Description

      The idea is to integrate Lucene's ToParentBlockJoinSortField
      The approach to hookup it is a little bit tricky:
      sort={!childfield bjq=$q field=COLOR_s}desc sort=\childfield(COLOR_s,$q) desc
      the question no.1 wdyt about the syntax?
      internally it creates a function query with valueSource which produces ToParentBlockJoinSortField

      The main challenge is picking Solr field type from ToParentBlockJoinSortField, because as-is it's broken on mergeIds - ByteRefs need to be properly marshaled and unmarshalled by a field type from the child scope.

        Attachments

        1. SOLR-10521-raw.patch
          9 kB
          Mikhail Khludnev
        2. SOLR-10521-doc.patch
          1 kB
          Mikhail Khludnev
        3. SOLR-10521-6x.patch
          25 kB
          Mikhail Khludnev
        4. SOLR-10521.patch
          26 kB
          Mikhail Khludnev
        5. SOLR-10521.patch
          25 kB
          Mikhail Khludnev
        6. SOLR-10521.patch
          26 kB
          Mikhail Khludnev
        7. SOLR-10521.patch
          25 kB
          Mikhail Khludnev

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: