Permalink
Browse files

Allow configuration of Parser.setLowercaseExpandedTerms setting

  • Loading branch information...
1 parent a62fbb7 commit c1b0e251d38b1004a22dc7ecdd05f01566f1c810 Robert Newson committed Dec 13, 2011
Showing with 1 addition and 0 deletions.
  1. +1 −0 src/main/java/com/github/rnewson/couchdb/lucene/DatabaseIndexer.java
View
1 src/main/java/com/github/rnewson/couchdb/lucene/DatabaseIndexer.java
@@ -139,6 +139,7 @@ public Query parse(final String query, final Operator operator, final Analyzer a
Constants.DEFAULT_FIELD, analyzer);
parser.setDefaultOperator(operator);
parser.setAllowLeadingWildcard(ini.getBoolean("lucene.allowLeadingWildcard", false));
+ parser.setLowercaseExpandedTerms(ini.getBoolean("lucene.lowercaseExpandedTerms", true));
return parser.parse(query);
}

0 comments on commit c1b0e25

Please sign in to comment.