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

support customisation of the "highlighting" query response element

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 7.3, master (8.0)
    • Component/s: highlighter
    • Labels:
      None

      Description

      The objective and use case behind the proposed changes is to be able to receive not the out-of-the-box highlighting map

      {
        ...
        "highlighting" : {
          "MA147LL/A" : {
            "manu" : [
              "<em>Apple</em> Computer Inc."
            ]
          }
        }
      }
      

      as illustrated in https://lucene.apache.org/solr/guide/7_2/highlighting.html#highlighting-in-the-query-response but to be able to alternatively name and customise the highlighting element of the query response to (for example) be like this

      {
        ...
        "custom_highlighting" : [
          {
            "id" : "MA147LL/A",
            "snippets" : {
              "manu" : [
                "<em>Apple</em> Computer Inc."
              ]
            }
          }
        ]
      }
      

      where the highlighting element itself is a list and where the keys of each list element are 'knowable' in advance i.e. they are not 'unknowable' document ids.

        Attachments

        1. 17766 jenkins.log
          254 kB
          David Smiley
        2. 2618 jenkins.log
          230 kB
          David Smiley
        3. SOLR-11801.patch
          15 kB
          Christine Poerschke
        4. SOLR-11801.patch
          18 kB
          Christine Poerschke
        5. SOLR-11801.patch
          17 kB
          Christine Poerschke
        6. SOLR-11801.patch
          15 kB
          Christine Poerschke

          Issue Links

            Activity

              People

              • Assignee:
                cpoerschke Christine Poerschke
                Reporter:
                cpoerschke Christine Poerschke
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: