lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Hostetter <hossman_luc...@fucit.org>
Subject Re: I need 'cat???' to match 'cat' again!
Date Thu, 07 Jun 2007 07:40:19 GMT

: Isn't RegexQuery slower than '???' at the end of a
: word?

I've nevered used RegexQuery but a quick glance at the regex javadocs
indicates that some "RegexCapabilities" can optimize the cases with a
fixed prefix, and JakartaRegexpCapabilities is one of those cases ... so
if you construct a RegexQuery and call setRegexImplementation(new
JakartaRegexpCapabilities()) it should be just as fast sa a WildCardQuery

(both will start at the first term with a prefix in common, and then test
each successive term against a common pattern)



-Hoss


---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message