indexwriter and index searcher

2005-10-24 Thread Dan Adams
If I have a directory open and I open an index writer and add a document do I have to close the directory and re-open it before I can open a searcher and have the new document be included in the search? In general, is it good to keep the directory open or is it better to open the document each tim

Re: indexwriter and index searcher

2005-10-24 Thread Erik Hatcher
On 24 Oct 2005, at 10:07, Dan Adams wrote: If I have a directory open and I open an index writer and add a document do I have to close the directory and re-open it before I can open a searcher and have the new document be included in the search? Yes. In general, is it good to keep the dire

Re: indexwriter and index searcher

2005-10-24 Thread MALCOLM CLARK
Hi all, I am relatively new and scared by Lucene so please don't flame me.I have abandoned Digester and am now just using other SAX stuff. I have used the sandbox stuff to parse an XML file with SAX which then bungs it into a document in a Lucene index.The bit I'm stuck on is how is a element

Re: indexwriter and index searcher

2005-10-24 Thread Erik Hatcher
I think you really need to show us some code. If your XML documents are small enough, then perhaps DOM (via JDOM) would be a much simpler way to navigate XML via XPath. Erik On 24 Oct 2005, at 11:07, MALCOLM CLARK wrote: Hi all, I am relatively new and scared by Lucene so please don

Re: indexwriter and index searcher

2005-10-24 Thread Otis Gospodnetic
Hi Malcolm, --- MALCOLM CLARK <[EMAIL PROTECTED]> wrote: > Hi all, > > I am relatively new and scared by Lucene so please don't flame me. I won't flame, but you just hijacked somebody else's thread baaad boy! > I have abandoned Digester and am now just using other SAX stuff. No need to be