Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Lucene: c-dev

How to write the Sql in(intersection) query in Lucene.

 

 

Lucene c-dev RSS feed   Index | Next | Previous | View Threaded


bisht_gopal2004 at rediffmail

May 6, 2009, 3:29 AM

Post #1 of 1 (3307 views)
Permalink
How to write the Sql in(intersection) query in Lucene.

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.

Lucene c-dev RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.