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

QueryParser with wildcard search does not use Analyzer's tokenizer

Details

    • Bug
    • Status: Reopened
    • Major
    • Resolution: Unresolved
    • 6.2
    • None
    • core/queryparser
    • None
    • 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

            uschindler Uwe Schindler
            mpichler Michael Pichler
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: