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

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

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 6.6, 7.0
    • None
    • 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.patch
          25 kB
          Mikhail Khludnev
        2. SOLR-10521.patch
          26 kB
          Mikhail Khludnev
        3. SOLR-10521.patch
          25 kB
          Mikhail Khludnev
        4. SOLR-10521.patch
          26 kB
          Mikhail Khludnev
        5. SOLR-10521-6x.patch
          25 kB
          Mikhail Khludnev
        6. SOLR-10521-doc.patch
          1 kB
          Mikhail Khludnev
        7. SOLR-10521-raw.patch
          9 kB
          Mikhail Khludnev

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: