Use JCDB to connect to your DB, issue appropriate SELECTs to select
each of you entity/document units, then use the returned data to create
instances of Lucene documents, add those to the index via IndexWriter,
and you got yourself a Lucene index that represents data you have
stored in DB.
If
Thanks for reply...but I still have some confusion.
While creating indexes when we have documents in directory structure we just
have to pass directory path as argument here when we will execute select
query should the returned data be in InputStream form?
While searching how the index will
What I do is do a db select and build up a result set of all the
documents/fields I need to search then I index them. This is usually
performed once a day and does so on all db records. I'm currently using
turbine and torque to do this.
-Original Message-
From: Ankur Goel