diff --git a/lucene/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/CommonQueryParserConfiguration.java b/lucene/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/CommonQueryParserConfiguration.java index 3f688e6fd52..7c305f38bcb 100644 --- a/lucene/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/CommonQueryParserConfiguration.java +++ b/lucene/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/CommonQueryParserConfiguration.java @@ -33,13 +33,9 @@ import org.apache.lucene.search.MultiTermQuery; public interface CommonQueryParserConfiguration { /** - * Set to true to allow leading wildcard characters. - *

- * When set, * or ? are allowed as the first - * character of a PrefixQuery and WildcardQuery. Note that this can produce - * very slow queries on big indexes. - *

- * Default: false. + * Whether terms of multi-term queries (e.g., wildcard, + * prefix, fuzzy and range) should be automatically + * lower-cased or not. Default is true. */ public void setLowercaseExpandedTerms(boolean lowercaseExpandedTerms); diff --git a/lucene/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/config/StandardQueryConfigHandler.java b/lucene/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/config/StandardQueryConfigHandler.java index b65e1a78d09..a7fd34a4ef1 100644 --- a/lucene/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/config/StandardQueryConfigHandler.java +++ b/lucene/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/config/StandardQueryConfigHandler.java @@ -58,7 +58,7 @@ public class StandardQueryConfigHandler extends QueryConfigHandler { final public static ConfigurationKey ENABLE_POSITION_INCREMENTS = ConfigurationKey.newInstance(); /** - * Key used to set whether expanded terms should be expanded + * Key used to set whether expanded terms should be lower-cased * * @see StandardQueryParser#setLowercaseExpandedTerms(boolean) * @see StandardQueryParser#getLowercaseExpandedTerms()