lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From JustineHMS <justine.w...@hypermediasystems.com>
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
following:

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,

-J
--
View this message in context: http://www.nabble.com/How-to-realize-Sql-LIKE--t1553855.html#a4221469
Sent from the Lucene - Java Users forum at Nabble.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