Solr
  1. Solr
  2. SOLR-751

WordDelimiterFilter doesn't adjust startOffset

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.3
    • Fix Version/s: 1.4
    • Component/s: None
    • Labels:
      None

      Description

      If the first character of a token gets stripped the startOffset of that token is not adjusted. With the last character it behaves as expected. I'll attach a patch for the TestWordDelimiterFilter testcase which reproduces that issue shortly.

      1. SOLR-751.patch
        3 kB
        Stefan Oestreicher
      2. SOLR-751.patch
        1 kB
        Stefan Oestreicher

        Activity

        Hide
        Stefan Oestreicher added a comment -

        I found the problem and updated the patch with more tests and a fix. Would be great if this could make into 1.3 since highlighting breaks because of it.

        Show
        Stefan Oestreicher added a comment - I found the problem and updated the patch with more tests and a fix. Would be great if this could make into 1.3 since highlighting breaks because of it.
        Hide
        Shalin Shekhar Mangar added a comment -

        Marking for 1.3.1 so that somebody who knows more about the highlighting than me takes care of this.

        Show
        Shalin Shekhar Mangar added a comment - Marking for 1.3.1 so that somebody who knows more about the highlighting than me takes care of this.
        Hide
        Yonik Seeley added a comment -

        Thanks Stefan, I just committed this.

        Show
        Yonik Seeley added a comment - Thanks Stefan, I just committed this.
        Hide
        Grant Ingersoll added a comment -

        Bulk close for Solr 1.4

        Show
        Grant Ingersoll added a comment - Bulk close for Solr 1.4

          People

          • Assignee:
            Unassigned
            Reporter:
            Stefan Oestreicher
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development