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

highlighting breaks when using WordDelimiterFilter and setting termOffsets=true

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.4
    • Fix Version/s: 3.1, 4.0-ALPHA
    • Component/s: highlighter
    • Labels:
      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.txt
          4 kB
          Stefan Oestreicher
        2. SOLR-1826.txt
          2 kB
          Stefan Oestreicher
        3. SOLR-1826.txt
          2 kB
          Stefan Oestreicher
        4. SOLR-1826.patch
          75 kB
          Sanjoy Ghosh
        5. SOLR-1826.patch
          15 kB
          Stefan Oestreicher

        Issue Links

          Activity

            People

            • Assignee:
              rcmuir Robert Muir
              Reporter:
              dlx Stefan Oestreicher

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment