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 http://blog.mikemccandless.com On Mon, Aug 22, 2016 at 4:53 AM, Cristian Lorenzetto < cristian.lorenze...@gmail.com> 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. >