lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marcio Napoli <napoli.mar...@gmail.com>
Subject Removing/Adding term to one field by docId
Date Fri, 17 Jan 2014 13:56:00 GMT
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/

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message