diff --git a/lucene/core/src/java/org/apache/lucene/search/WildcardQuery.java b/lucene/core/src/java/org/apache/lucene/search/WildcardQuery.java index 97683c6cbc8..a116ad6a2d3 100644 --- a/lucene/core/src/java/org/apache/lucene/search/WildcardQuery.java +++ b/lucene/core/src/java/org/apache/lucene/search/WildcardQuery.java @@ -28,8 +28,7 @@ import java.util.List; /** Implements the wildcard search query. Supported wildcards are *, which * matches any character sequence (including the empty one), and ?, - * which matches any single character. If you want to treat a wildcard as a literal - * character instead, escape it with '\'. + * which matches any single character. '\' is the escape character. *

* Note this query can be slow, as it * needs to iterate over many terms. In order to prevent extremely slow WildcardQueries,