You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-commits@lucene.apache.org by Apache Wiki <wi...@apache.org> on 2008/04/12 00:11:27 UTC
[Lucene-java Wiki] Update of "LuceneFAQ" by DanielNaber
Dear Wiki user,
You have subscribed to a wiki page or wiki category on "Lucene-java Wiki" for change notification.
The following page has been changed by DanielNaber:
http://wiki.apache.org/lucene-java/LuceneFAQ
The comment on the change is:
database indexing
------------------------------------------------------------------------------
==== 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.
+
+ For a more high level approach you might want to have a look at [http://search.hibernate.org Hibernate Search], [http://www.compass-project.org/ Compass], or [http://www.dbsight.net/ DBSight], which all use Lucene internally.
==== How do I perform a simple indexing of a set of documents? ====