Re: How to track database changes at run time to update index in Lucene ?

2006-01-10 Thread Dick de Jong
For changes in the database, you can: - use the server side business object that also does the update of the BO in the database, and which currently does also the indexing in lucene - use the front-end (browser I presume if I see AJAX, which is nothing more than XmlHttp), but would not be my prefer

Re: Basic question on opening 2 IndexWriters on same Directory - I do not get IOException ...

2006-01-10 Thread Dick de Jong
Hi Koji, I might not agree with you ... I did the following: I create new function which invokes FSDirectory.getDirectory(dir,true) twice . The result I compare (fs1==fs2). In my situation the (fs1==fs2) = true. So even in my situation, i have two references to the same Directory object. If I loo

Re: Basic question on opening 2 IndexWriters on same Directory - I do not get IOException ...

2006-01-10 Thread Dick de Jong
} > > If IndexWriter(path,Analyzer,true) is used, > IndexWriter calls FSDirectory.getDirectory(path,true) and > FSDirectory overwrites the existing lock file. > > Hope this helps, > > Koji > > > -Original Message- > > From: Dick de Jong [mail

Basic question on opening 2 IndexWriters on same Directory - I do not get IOException ...

2006-01-07 Thread Dick de Jong
Question: Run attached java class and see the also attached when I ran it. I assumed the second writer should get an IOException in getWriter (in first TESTCASE). However this does not happen! This only happens when I open both writers with flag 'createIndex'=true (see also