lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martin Braun <>
Subject Re: question
Date Thu, 29 Jun 2006 12:21:33 GMT schrieb:
> hi,
> my problem is that i am using mysql db in which one table is
> present and i want index each row in the table and then search
> plz reply
> how this can be done?
How can I use Lucene to index a database?

Connect to the database using JDBC and use an SQL "SELECT" statement to
query the database. Then create one Lucene Document object per row and
add it to the index. You will probably want to store the ID column so
you can later access the matching items. For other (text) columns it
might make more sense to only index (not store) them, as the original
data is still available in your database.

> amit kumar
> ==========
> This e-mail may contain privileged and confidential information which is the property
of Persistent Systems Pvt. Ltd. It is intended only for the use of the individual or entity
to which it is addressed. If you are not the intended recipient, you are not authorized to
read, retain, copy, print, distribute or use this message. If you have received this communication
in error, please notify the sender and delete all copies of this message. Persistent Systems
Pvt. Ltd. does not accept any liability for virus infected mails.
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

Universitaetsbibliothek Heidelberg   Tel: +49 6221 54-2580
Ploeck 107-109, D-69117 Heidelberg   Fax: +49 6221 54-2623

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message