Re: Updating index if there is a database changes

2006-05-04 Thread Yonik Seeley
On 5/3/06, Kiran Joisher <[EMAIL PROTECTED]> wrote: I m working on a project where I will use lucene to make a search engine on a database. I am new to lucene. I wrote a test program which indexes a table and searches the same.. but now I m stuck on how to update the index in case a database chan

RE: Updating index if there is a database changes

2006-05-03 Thread Kiran Joisher
Thanks Stephen, This was really helpful. Cheers, --Kiran -Original Message- From: Stephen Gray [mailto:[EMAIL PROTECTED] Sent: Thursday, May 04, 2006 4:11 AM To: java-user@lucene.apache.org Subject: Re: Updating index if there is a database changes Hi Kirin, Once you've up

Re: Updating index if there is a database changes

2006-05-03 Thread Stephen Gray
Hi Kirin, Once you've updated an index using IndexWriter or IndexReader you just need to close and re-open your IndexSearcher so that searching includes the changes. There is a great library callled LuceIndexAccessor at the link below that manages this for you. It creates an IndexReader/Writer

Re: Updating index if there is a database changes

2006-05-03 Thread Chris Lu
My approach is to select documents ordered by updated_date desc And only process documents newer than the ones already in the index. Chris Lu Full-Text Lucene Search for Any Databases/Applications http://www.dbsight.net On 5/3/06, Kiran Joisher <[EMAIL PROTE

Updating index if there is a database changes

2006-05-03 Thread Kiran Joisher
Hi all, I m working on a project where I will use lucene to make a search engine on a database. I am new to lucene. I wrote a test program which indexes a table and searches the same.. but now I m stuck on how to update the index in case a database change occurs.. I need some help on this topic...