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

Solr highlights terms that part of the query even though they don't match the actual query

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Not A Problem
    • 8.11.2
    • None
    • None
    • The collection has 16 shards and request handler is edismax

       "hl.snippets":"10"

      The rest are defaults

    Description

      Take and example query like so:

      Term1 OR (Term2 AND Term3)

      And we have the following document index that has the following text in the "body" field

      "he was born in Term1 and then he moved to Term3"

      Now if we search with highlighting enabled on "body", we get Term1, Term2 and Term3 highlighted as part of the response 

      The Term2 should not be highlighted for this document. Only Term1 should highlighted as the document matched on Term1 and did not on (Term2 and Term3)

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            arsaljalib Arsal Jalib
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: