Solr
  1. Solr
  2. SOLR-1826

highlighting breaks when using WordDelimiterFilter and setting termOffsets=true

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major 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.

      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

          No work has yet been logged on this issue.

            People

            • Assignee:
              Robert Muir
              Reporter:
              Stefan Oestreicher
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development