From 985885312310a3d2356ad1264aaa3992251251ef Mon Sep 17 00:00:00 2001 From: Robert Muir Date: Tue, 28 Jun 2011 01:53:38 +0000 Subject: [PATCH] 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 --- .../src/java/org/apache/lucene/search/regex/RegexQuery.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lucene/contrib/queries/src/java/org/apache/lucene/search/regex/RegexQuery.java b/lucene/contrib/queries/src/java/org/apache/lucene/search/regex/RegexQuery.java index f78e0fa2aca..88645d273f2 100644 --- a/lucene/contrib/queries/src/java/org/apache/lucene/search/regex/RegexQuery.java +++ b/lucene/contrib/queries/src/java/org/apache/lucene/search/regex/RegexQuery.java @@ -19,6 +19,7 @@ package org.apache.lucene.search.regex; import org.apache.lucene.search.MultiTermQuery; import org.apache.lucene.search.FilteredTermsEnum; +import org.apache.lucene.search.RegexpQuery; // javadoc import org.apache.lucene.index.Term; import org.apache.lucene.index.Terms; import org.apache.lucene.util.AttributeSource; @@ -29,7 +30,10 @@ import java.io.IOException; /** Implements the regular expression term search query. * The expressions supported depend on the regular expression implementation * used by way of the {@link RegexCapabilities} interface. - * + *

+ * NOTE: You may wish to consider using the regex query support + * in {@link RegexpQuery} instead, as it has better performance. + * * @see RegexTermsEnum */ public class RegexQuery extends MultiTermQuery implements RegexQueryCapable {