How to search record from database using Apache LUCENE
2 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Anonymous
Posted On:   Friday, July 28, 2006 09:13 AM

Hi All,

I am new to Apache lucene.

I want to search record from DB using apache lucene.
My scenorio is,

I have text box.I will type 'some text' in text box.Then that will search that text in DB & will return that records from database using apache lucene.
Is there any link or example.


Thanks in advance,
Sandip Patil

Re: How to search record from database using Apache LUCENE

Posted By:   vicente_vastich  
Posted On:   Saturday, July 29, 2006 04:43 AM

Unfortunately the only way out is to run select statements over your searchable records in the database and index them in Lucene ...very coarse indeed. This means that every update operation thats performed on the DB needs to be synched with the Lucene index. This can be very tricky depending on the complexity of your app.

You may want to check out OpenSymphony's Compass framework.

Re: How to search record from database using Apache LUCENE

Posted By:   Otis_Gospodnetic  
Posted On:   Saturday, July 29, 2006 12:31 AM

It sounds like you have a bit of learning to do in the Lucene realm. Try looking up DbSight and Compass. I think they will help you index your DB and make it searchable with Lucene.
About | Sitemap | Contact