add note about escaping terms

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1384427 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Robert Muir 2012-09-13 17:42:18 +00:00
parent e494b8841b
commit 08f86a018f
1 changed files with 4 additions and 1 deletions

View File

@ -28,7 +28,10 @@ import java.util.List;
/** Implements the wildcard search query. Supported wildcards are <code>*</code>, which
* matches any character sequence (including the empty one), and <code>?</code>,
* which matches any single character. Note this query can be slow, as it
* which matches any single character. If you want to treat a wildcard as a literal
* character instead, escape it with '\'.
* <p>
* Note this query can be slow, as it
* needs to iterate over many terms. In order to prevent extremely slow WildcardQueries,
* a Wildcard term should not start with the wildcard <code>*</code>
*