Re: Search shortly after adding a doc

2005-08-08 Thread Erik Hatcher
If you want to match a single document against a Query rapidly, try out the MemoryIndex as part of the contrib/memory codebase in Subversion. Erik On Aug 4, 2005, at 8:14 PM, [EMAIL PROTECTED] wrote: i want to use lucene to search shortly (within a second) after adding a document. c

RE: Search shortly after adding a doc

2005-08-05 Thread Mordo, Aviran (EXP N-NANNATEK)
You can try working with two indexes one for all of today's messages which will be pretty small, and another for past messages. Then once a day merge the small index to the big one and start fresh. This way you need only to open an IndexReader for the small index while the big one does not change.