Thanks for your email Dave,

I've thought about this overnight, and I've got a few questions please.

> When you open an IndexReader on the index it is opened up on 
> that particular version (or state) of the index

Would you elaborate on how Ferret manages versions please. For example,
can I have two readers open, one which accesses the old version of the
index, and the second which accesses the latest version?

> So to keep searches up to date you need to close and reopen 
> your IndexReader every time you commit changes to the index.

I guess by reopen you mean IndexReader.new ?

I proceeded to replace my Index usage with an IndexReader and Searcher
which are closed and recreated after each IndexWriter pass, and the
result seems to be that searches are still serialised - ie, a long
running query on thread t1 "blocks" the normally very fast query on
thread t1.

Might I be seeing another point of synchonisation, or am I just
observing a characteristic of ruby threads ?

Kind Regards,

Neville
_______________________________________________
Ferret-talk mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/ferret-talk

Reply via email to