You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@lucene.apache.org by Marcio Napoli <na...@gmail.com> on 2014/01/17 14:51:51 UTC

Removing/Adding term to one field by docId

Hey!

Lucene's API have the ability to change a document, removes and adds the
document. I have the need to add/remove a term by docId/field.

There is the possibility to perform the link between a term with a field
and its existing document? (field -> terms -> term -> DocIds)

writer.removeTerm (docId, field, term);
writer.addTerm (docId, field, term);

Thanks,
Marcio Napoli
napoli.marcio@gmail.com
http://numere.stela.org.br/