Then keeping the segments in memory is not helpful, as every open of the writer needs to traverse the directory (since another writer still could have created segments).

For example,

Computer A opens writer, modifies index, closes writer.
Computer B opens writer (this must read the directory)....

No reason to keep the filename/segment infos around...


On Aug 20, 2006, at 9:33 PM, Michael McCandless wrote:

robert engels wrote:
I don't think you can do this. If two different writers are opened for the same indexed, you always need to read the directory since the other may have created new segments.

This case should be OK. You have to close one IndexWriter before opening the other (only 1 writer at a time per index), so when the other one is opened it would refresh it's "deletable" list.

Mike

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to