Grokbase Groups Lucene c-dev May 2009
FAQ
Hello friend i need your help,

How to write the Sql in query in Lucene.
Example
Sql Query:
String tagIdStr="x,y,z";
List results=fSession.createQuery("from com.test.x.manager.TagTest where id
in ("+tagIdStr+")").list();

I have tried to write this query in Lucene but the list result is showing 0.
Lucene Query:
List results =fSession.createFullTextQuery(new WildcardQuery(new
Term("id","*"+tagIdStr+"*" )), TagTest.class).list();

Please suggested me how i can implemented this.

Thanks in Advance

Gopal Bisht


--
View this message in context: http://www.nabble.com/How-to-write-the-Sql-in%28intersection%29-query-in-Lucene.-tp23403965p23403965.html
Sent from the Lucene - C Developer mailing list archive at Nabble.com.

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupc-dev @
categorieslucene
postedMay 6, '09 at 10:29a
activeMay 6, '09 at 10:29a
posts1
users1
websitelucene.apache.org

1 user in discussion

Gopalbisht: 1 post

People

Translate

site design / logo © 2021 Grokbase