[ 
https://issues.apache.org/jira/browse/LUCENE-7437?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Uwe Schindler resolved LUCENE-7437.
-----------------------------------
    Resolution: Not A Problem
      Assignee: Uwe Schindler

Hi,

this is a known problem and not solveable by default, because many Analyzers 
are not working with wildcards, e.g. if stemming is involved. If you know that 
your analysis is not breaking the wildcard expansion, you can use 
AnalyzingQueryParser, which is a subclass of the classic queryparser that does 
special processing of wildcards, ranges, and fuzzy: 
[https://lucene.apache.org/core/6_2_0/queryparser/org/apache/lucene/queryparser/analyzing/AnalyzingQueryParser.html]

> QueryParser with wildcard search does not use Analyzer's tokenizer
> ------------------------------------------------------------------
>
>                 Key: LUCENE-7437
>                 URL: https://issues.apache.org/jira/browse/LUCENE-7437
>             Project: Lucene - Core
>          Issue Type: Bug
>          Components: core/queryparser
>    Affects Versions: 6.2
>            Reporter: Michael Pichler
>            Assignee: Uwe Schindler
>         Attachments: LuceneTest.java
>
>
> 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.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to