lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Niels Ott <>
Subject Deleting from Index by URL field: is it safe?
Date Fri, 28 Nov 2008 20:31:05 GMT
Hi all,

I want to safely delete documents from my index. There is an URL field 
that specifies where the document came from.

I'm using something like this:

    indexwriter.deleteDocuments(new Term("URL", myURL));

(inspired by the Lucene in Action Book, page 35.)

I'm uncertain whether this is safe or not: is there a chance that I 
delete documents I would want to keep? How does the matching exactly work.

During indexing, I'm using a KeywordAnalyzer for the URL field in order 
to avoid tokenization.



Niels Ott
Computational Linguist (B.A.)

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message