Reputation: 445
Came across this statement "Solr does not analyze wildcard queries" here.
I'm reading this that when a * or ? is detected, then anything in the analyzer type="query" sequence doesn't get run. Does that apply to the tokenizer as well?
Upvotes: 0
Views: 104
Reputation: 52832
Saying that Analysis does not take place when a wildcard query is applied is a good rule (and I've said so many times myself), but slightly wrong.
The exact explanation is that any tokenizer or filter that isn't MultiTermAware will be excluded, so Solr tries to "do the right thing" without them. You can define your own analysis chain under the key type="multiterm"
(with only MultiTermAware components) to define a custom chain for multitermed queries (such as wildcards).
The only tokenizer that is multitermaware as of 6.3 is LowerCaseTokenizer. In addition KeywordTokenizer will work, since it results in a single token.
You can see the whole list of MultitermAware components in the 'implemented by' list of the API doc.
Upvotes: 1