lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael McCandless <>
Subject Re: info about private int processField(IndexableField field, long fieldGen, int fieldCount)
Date Mon, 22 Aug 2016 09:51:38 GMT
The problem is how you implement that method to push changes down to the
inverted index, which has written postings for this field and document ID
to several files already.  You would probably need some sort of approach
that can delete the old docID, from just this one field, and then add new
postings for that same docID, written to separate files also against the
original segment that holds that docID.  I think this is the tricky part :)

Mike McCandless

On Mon, Aug 22, 2016 at 4:53 AM, Cristian Lorenzetto <> wrote:

> i m investigating about the update method for understanding if it is
> possible update a single field , not only all document
>  the code
>  try {
>       for (IndexableField field : docState.doc) {
>         fieldCount = processField(field, fieldGen, fieldCount);
>       }
> seams to tell that is not so difficult to add a method
> *updateFieldDocument(Int
> docid, IndexableField field) *
> but maybe there is some thing i dont know sufficientely for my deduction.

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