add a note about performance of this query

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1140395 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Robert Muir 2011-06-28 01:53:38 +00:00
parent 6f6b3cbc5a
commit 9858853123
1 changed files with 5 additions and 1 deletions

View File

@ -19,6 +19,7 @@ package org.apache.lucene.search.regex;
import org.apache.lucene.search.MultiTermQuery; import org.apache.lucene.search.MultiTermQuery;
import org.apache.lucene.search.FilteredTermsEnum; import org.apache.lucene.search.FilteredTermsEnum;
import org.apache.lucene.search.RegexpQuery; // javadoc
import org.apache.lucene.index.Term; import org.apache.lucene.index.Term;
import org.apache.lucene.index.Terms; import org.apache.lucene.index.Terms;
import org.apache.lucene.util.AttributeSource; import org.apache.lucene.util.AttributeSource;
@ -29,7 +30,10 @@ import java.io.IOException;
/** Implements the regular expression term search query. /** Implements the regular expression term search query.
* The expressions supported depend on the regular expression implementation * The expressions supported depend on the regular expression implementation
* used by way of the {@link RegexCapabilities} interface. * used by way of the {@link RegexCapabilities} interface.
* * <p>
* NOTE: You may wish to consider using the regex query support
* in {@link RegexpQuery} instead, as it has better performance.
*
* @see RegexTermsEnum * @see RegexTermsEnum
*/ */
public class RegexQuery extends MultiTermQuery implements RegexQueryCapable { public class RegexQuery extends MultiTermQuery implements RegexQueryCapable {