title: Is it Possible to Update a Lucene Document using its Document ID?
body: <p>A <code>ScoreDoc[]</code> array contains all the document ids from a search. I would like to use these document ids to update a single document. In this particular instance I cannot uniquely identify the row I wish to update, as the given terms will result in matching multiple documents. </p>
  
  <p>Imagine a query where 1:a, 2:b and the following documents are returned</p>
  
  <pre><code>       1 2 3 4 5 6
  doc 1: a b c d e f
  doc 2: a b g h i j
  doc 3: a b k l m n
  </code></pre>
  
  <p>I am basically making an update to fields 3 and 4, but want to leave 5 and 6 intact.</p>
  
  <p>Currently I can grab these rows, make the updates I want, but I can't figure out a way to update them in the index.</p>
  
  <p>An <code>indexWriter.updateDocuments(...)</code> or an <code>indexwriter.DeleteDocuments(...)</code> will result in document 1, 2 3 being deleted.</p>
  
  <p>Since I have the documentId, I assume there is a way for me to update the index with it.</p>