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

Solr proximity search highlighting issue

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Won't Fix
    • 8.4.1
    • None
    • highlighter
    • None

    Description

      I found some problem in highlighting module. Not all the search terms are getting highlighted.

      Sample query: q=

      {!complexphrase+inOrder=true}

      "pos1 (pos2 OR pos3)"~30&hl=true
      Indexed text: "pos1 pos2 pos3 pos4"
      You can see that only two terms are highlighted like, "<em>pos1</em> <em>pos2</em> pos3 pos4"
      Please find attached Not-highlighted-response screen shot for same.

      The scenario is when term positions are in-order in document and query both.

      If term position not in-order then it work proper
      Sample query: q=

      {!complexphrase+inOrder=false}

      "pos3 (pos1 OR pos2)"~30&hl=true
      You can see that all three term are highlighted like, "<em>pos1</em> <em>pos2</em> <em>pos3</em> pos4"
      Please find attached Highlighted-response screen shot for same.

      The scenario is same in Solr source code since long time (I have checked in Solr version 4 to version 7).

      Attachments

        1. Not-Highlighted-response.PNG
          41 kB
          amit naliyapara
        2. managed-schema
          61 kB
          amit naliyapara
        3. solr-doc-Id-1.txt
          0.0 kB
          amit naliyapara
        4. Highlighted-response.PNG
          13 kB
          amit naliyapara

        Issue Links

          Activity

            People

              Unassigned Unassigned
              amit.naliyapara amit naliyapara
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: