Uploaded image for project: 'Lucene - Core'
  1. Lucene - Core
  2. LUCENE-7437

QueryParser with wildcard search does not use Analyzer's tokenizer

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Reopened
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 6.2
    • Fix Version/s: None
    • Component/s: core/queryparser
    • Labels:
      None
    • Lucene Fields:
      New

      Description

      Using a tokenizer that splits at underscores (e.g. SimpleAnalyzer) splits "qwert_asdfghjkl" into two words at the time of indexing.

      Searches for "qwert asdf*" or "qwert_asdfghjkl" work as expected.

      However, when a query contains wildcards, e.g. "qwert_asdf*" the query parser does not use the tokenizer of its analyzer to split the words and thus finds no result.

        Attachments

        1. LuceneTest.java
          5 kB
          Michael Pichler

          Activity

            People

            • Assignee:
              thetaphi Uwe Schindler
              Reporter:
              mpichler Michael Pichler
            • Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated: