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

Add the ability to preserve the original term when using WordDelimiterFilter

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.3
    • Component/s: search
    • Labels:
      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. SOLR-14.patch
          12 kB
          Yonik Seeley
        2. SOLR-14.patch
          10 kB
          Geoffrey Young
        3. SOLR-14.patch
          9 kB
          Ankur Madnani
        4. SOLR-14.patch
          10 kB
          Geoffrey Young
        5. TokenizerFactory.java
          0.9 kB
          Richard "Trey" Hyde
        6. WordDelimiterFilter.patch
          5 kB
          Richard "Trey" Hyde
        7. WordDelimiterFilter.patch
          2 kB
          Richard "Trey" Hyde

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: