Re: hot swapping searchers

2005-08-03 Thread Otis Gospodnetic
Hi Stanislav, Try it, but I think it won't work if document IDs don't match in the old and new Index(Searcher). Otis --- Stanislav Jordanov <[EMAIL PROTECTED]> wrote: > A Hits object holds a reference to a Searcher and uses it to retrieve > > docs not in the cache list. > Is it ok if I modify

hot swapping searchers

2005-08-03 Thread Stanislav Jordanov
A Hits object holds a reference to a Searcher and uses it to retrieve docs not in the cache list. Is it ok if I modify the Hits object in a way that it may have its searcher replaced, i.e. introduce a: *setSearcher(Searcher s) { this.searcher = s; }* method and invoke it (syncronously) between i