On Friday 13 February 2004 19:10, Stephane James Vaucher wrote:
> Very possible, before adding a document, you can check (with the judicious
> use of an id) if it has already been added. If it hasn't, do your
> notification, but this requires programming.

So you mean adding the new documents to a temporary index first, running all 
queries against it and then write the temp index to the final index?

RAMDirectory ram = new RAMDirectory();
for (docs...)
        ram.addDocument(doc);

IndexSearcher searcher = new IndexSearcher(ram),
for (queries...)
        if (searcher.search(query) != null)
                notify();

finalIndex.addIndexes(ram);
finalIndex.optimize();

?

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

Reply via email to