In Luke, if I enter the search expression docfile:Tomatoes.jpg*
the parsed query is docfile:Tomatoes.jpg*
. When the search expression is docfile:Tomatoes.jpg
, (no asterisk *) the parsed query is docfile:tomatoes.jpg
with a lowercase 't'.
BTW, using org.apache.lucene.analysis.standard.StandardAnalyzer.
StandardAnalyzer
uses LowerCaseFilter
which means it lowercases your queries and data. This is described in the Javadocs http://lucene.apache.org/java/3_0_1/api/core/org/apache/lucene/analysis/standard/StandardAnalyzer.html.
If I remember correctly WhitespaceAnalyzer
does not lowercase, but verify it suits your needs http://lucene.apache.org/java/3_0_1/api/core/org/apache/lucene/analysis/WhitespaceAnalyzer.html.