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

highlighting breaks when using WordDelimiterFilter and setting termOffsets=true

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.4
    • 3.1, 4.0-ALPHA
    • highlighter
    • None

    Description

      When using the WordDelimiterFilter and setting termOffsets to true the highlighting breaks in certain cases. This did not happen in the 1.3 release.
      For example, if I index the term "PowerShot.com" and search for pow* the highlighting snippet contains <em>Power</em><em>PowerShot.com</em>.
      I will attach a patch which adds tests to the highlighter unittest to demonstrate the issue.

      Attachments

        1. SOLR-1826.patch
          15 kB
          Stefan Oestreicher
        2. SOLR-1826.patch
          75 kB
          Sanjoy Ghosh
        3. SOLR-1826.txt
          2 kB
          Stefan Oestreicher
        4. SOLR-1826.txt
          2 kB
          Stefan Oestreicher
        5. SOLR-1826.txt
          4 kB
          Stefan Oestreicher

        Issue Links

          Activity

            People

              rcmuir Robert Muir
              dlx Stefan Oestreicher
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: