[KinoSearch] Search while indexing
Marvin Humphrey
marvin at rectangular.com
Sun Sep 2 18:20:31 PDT 2007
On Aug 23, 2007, at 7:54 PM, Terence Kwan wrote:
> Is it possible to do search while indexing?
>
> I have one process which is updating and indexing the directory
> (which takes about 15 minutes every hour) - open_index, add, add,
> add, ... close_index.
If you're building the index from scratch, then as soon as you
clobber the existing index, no new Searchers can be created until the
build completes. You may wish to build in another directory, then
swap it into place.
Another possibility, so long as you are not on NFS, is to open a
Searcher in a persistent application; it will hold open the necessary
filehandles as long as it is alive, and the files will truly be
reclaimed by the OS only after the last Search object referencing
them is destroyed.
Marvin Humphrey
Rectangular Research
http://www.rectangular.com/
_______________________________________________
KinoSearch mailing list
KinoSearch at rectangular.com
http://www.rectangular.com/mailman/listinfo/kinosearch
More information about the kinosearch
mailing list