
marvin at rectangular
Sep 2, 2007, 6:20 PM
Post #2 of 2
(666 views)
Permalink
|
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 http://www.rectangular.com/mailman/listinfo/kinosearch
|