from javadoc:
public final int *delete*(Term <cid:part1.00050007.06010306@colaborativa.net>
term)
throws IOException
<http://java.sun.com/j2se/1.4/docs/api/java/io/IOException.html>
Deletes all documents containing |term|. This is useful if one uses a
document field to hold a unique ID string for the document. Then to
delete such a document, one merely constructs a term with the
appropriate field and the unique ID string as its text and passes it to
this method.* Returns the number of documents deleted.*
bye
Ernesto.
Daniel Naber escribió:
On Friday 03 June 2005 18:50, Max Pfingsthorn wrote:
reader.delete(new Term(URI_FIELD, uri));
This does not remove anything. Do I have to make the uri a normal field?
How do you know nothing was deleted? Are you aware that you need to re-open
your IndexSearcher/Reader in order to see the changes made to the index?
Regards
Daniel
--
Ernesto De Santis - Colaborativa.net
La Plata, Argentina.
http://www.colaborativa.net/
___________________________________
A tu celular ¿no le falta algo?
Usá Yahoo! Messenger y Correo Yahoo! en tu teléfono celular.
Más información en http://movil.yahoo.com.ar
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]