lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From JustineHMS <>
Subject How to realize Sql LIKE?
Date Thu, 04 May 2006 01:39:12 GMT

Hi All,

I m new to Lucene,

Just wondering if there is a way to realize sql 'Like' function in Lucene as

Select * from user_table where username like '%abc%'

I have checked with wildCardQuery, but it can not start with a '%'.
What about RegexQuery?  How to use it?

Thank you very much for any input,

View this message in context:
Sent from the Lucene - Java Users forum at

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message