Lucene with database
2 posts in topic
Flat View  Flat View

Posted By:   jayaram_gokulan
Posted On:   Sunday, September 30, 2001 05:15 PM

hi friends,

i want to use lucene search engine to search text contents from my database.
the input is from html form.

i dont know how to use lucene or how to run the sample code.

can anybody help me with java code. or any ideas so that i can complete my task.


Re: Lucene with database

Posted By:   David_Graff  
Posted On:   Tuesday, October 30, 2001 10:15 AM

I'm currently working on doing this right now. My only quirk is figuring out the best fields types to use for different columns.

Basically you just select the data you want from the database, decide which column goes in which lucene field, and you should be off and running.

I was able to modify the file system indexer to do a rough hack to index a database. It works fairly well and, although I have not yet benchmarked it, is very fast.

Re: Lucene with database

Posted By:   Otis_Gospodnetic  
Posted On:   Thursday, October 18, 2001 10:16 PM

In order to accomplish this you will have to write some custom code to first retrieve the data that you want to index from the database and then feed it to Lucene for indexing.

That will allow you to create a full-text index with the data from the database.

Once you have that piece done you have to write some Java code using Lucene's API to search the created index and retrieve results from there.
About | Sitemap | Contact