You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucy.apache.org by Peter Karman <pe...@peknet.com> on 2010/04/07 15:18:47 UTC
Searchers and segments
I just want to confirm something I assume is true.
A Searcher will returns results only for the segments of the index that
existed at the time the Searcher was created.
I.e., if I add/update/delete documents from an index, any opened
Searchers are stale and should be destroyed and re-opened, yes?
--
Peter Karman . http://peknet.com/ . peter@peknet.com
Re: [KinoSearch] Searchers and segments
Posted by Marvin Humphrey <ma...@rectangular.com>.
On Wed, Apr 07, 2010 at 08:18:47AM -0500, Peter Karman wrote:
> I just want to confirm something I assume is true.
>
> A Searcher will returns results only for the segments of the index that
> existed at the time the Searcher was created.
I added the following clause to IndexSearcher's docs in an attempt to address
this question:
* IndexSearchers operate against a single point-in-time view or
* L<Snapshot|KinoSearch::Index::Snapshot> of the index. If an index is
* modified, a new IndexSearcher must be opened to access the changes.
Marvin Humphrey