RE: how to safely periodically reopen the IndexReader?

2008-02-16 Thread John Griffin
Your users won't appreciate your closing the searcher on them. That is, if you have a highly concurrent system. I don't know about 2.3.0 yet. Haven't had much chance to see the changes but with 2.2.0 I use an atomic counter. It's not that much to program. Regards, John G. -Original Message-

Searching multiple indexes

2008-02-16 Thread spring
Hi, I have some questions about searching multiple indexes. 1. IndexSearcher with a MultiReader will search the indexes sequentially? 2. ParallelMultiSearcher searches in parallel. How is this done? One thread per index? When will it return? When the slowest search is fineshed? 3. When I have t

Re: Boost value corrupted "read eof exception"

2008-02-16 Thread Michael McCandless
You can use a separate unindexed, stored fields for this? Ie add fields "field 1 weight age", "field 2 weight age", etc, and store that float value (as a string) in there? Mike Allahbaksh Mohammedali Asadullah <[EMAIL PROTECTED]> wrote: > > > Hi Chris and Mike, > Thanks for your help. > Chis you

how to safely periodically reopen the IndexReader?

2008-02-16 Thread ZaeX
Hi, all I've got a question here needing your help: For my index, I opened one IndexWriter (autocommit mode) and one IndexSearcher on it; I have quite a lot of threads here concurrently writing new documents and doing search in index. the IndexWriter is flushed periodically. as I want the IndexSea