IndexWriter currently has no way to check if a doc is deleted; you'd
have to use IndexReader...
The deleteDocuments methods in IndexWriter do not return a count
(unlike IndexReader) because the request is simply buffered and then
processed in bulk when the deletes are flush. So at the time of that
call, IndexWriter does not know how many documents were affected by
the delete.
But why do you need to check this in the first place? EG searching
will never return to you a deleted document...
Mike
Marc Sturlese wrote:
Hey there,
I would like to know how to check if a document has been deleted if
I am
using an IndexWriter and the fucntions deleteDocument or
updateDocument.
I have seen that deleteDocument from IndexReader returns an integer
but in
the IndexWriter's case it's a void.
Any advice?
Thanks in advance.
--
View this message in context:
http://www.nabble.com/check-if-document-is-deleted-using-indexwriter-tp21580983p21580983.html
Sent from the Lucene - Java Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org
For additional commands, e-mail: java-user-h...@lucene.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org
For additional commands, e-mail: java-user-h...@lucene.apache.org