lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Robert Muir <rcm...@gmail.com>
Subject Re: Can this regex be done?
Date Wed, 02 Sep 2009 22:23:14 GMT
Have you tried the regex package in lucene's contrib?

http://lucene.apache.org/java/2_4_0/api/org/apache/lucene/search/regex/package-summary.html

there are several implementations, I am not sure if one really exactly
"perl compatible", but for your example I think it will do the trick.

On Wed, Sep 2, 2009 at 5:14 PM, Michael Thomsen<mikerthomsen@gmail.com> wrote:
> Is it possible to translate this sort of Perl regex into a lucene query:
>
> /goth(am|ic)/
>
> Where the only results that would be returned would be gotham or gothic?
>
> Thanks,
>
> Mike
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
>
>



-- 
Robert Muir
rcmuir@gmail.com

---------------------------------------------------------------------
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