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

Add the ability to preserve the original term when using WordDelimiterFilter

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

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.3
    • search
    • None

    Description

      When doing prefix searching, you need to hang on to the original term othewise you'll miss many matches you should be making.

      Data: ABC-12345
      WordDelimiterFitler may change this into
      ABC 12345 ABC12345

      A user may enter a search such as
      ABC-123*
      Which will fail to find a match given the above scenario.

      The attached patch will allow the use of the "preserveOriginal" option to WordDelimiterFilter and will analyse as
      ABC 12345 ABC12345 ABC-12345
      in which case we will get a postive match.

      Attachments

        1. WordDelimiterFilter.patch
          2 kB
          Richard "Trey" Hyde
        2. TokenizerFactory.java
          0.9 kB
          Richard "Trey" Hyde
        3. WordDelimiterFilter.patch
          5 kB
          Richard "Trey" Hyde
        4. SOLR-14.patch
          10 kB
          Geoffrey Young
        5. SOLR-14.patch
          9 kB
          Ankur Madnani
        6. SOLR-14.patch
          10 kB
          Geoffrey Young
        7. SOLR-14.patch
          12 kB
          Yonik Seeley

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            yseeley@gmail.com Yonik Seeley
            rhyde Richard "Trey" Hyde
            Votes:
            2 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment