lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mike Hogan">
Subject How would you delete an entry that was indexed like this
Date Fri, 05 Dec 2003 18:05:59 GMT

If I index a document like this:

IndexWriter writer = createWriter();
Document document = new Document();
document.add(Field.Text(ID_FIELD_NAME, componentId));
document.add(Field.Text(CONTENTS_FIELD_NAME, componentDescription));

What code must I execute to later delete the document (I tried following the
docs and whats done in the code and test cases.  I saw Terms being used to
ID the document to delete.  But I am not clear what value to put in the
Term, as I do not know how Terms relate to Fields).

Many thanks,

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

View raw message