An in-place update to a DocValues field.
Example #1
0
 // LUCENENET specific: Pass DocValuesUpdate instead of the value, since this class knows the type to retrieve, but the caller does not.
 public override void AddFromUpdate(int doc, DocValuesUpdate update)
 {
     Add(doc, ((BinaryDocValuesUpdate)update).value);
 }
Example #2
0
 /// <summary>
 /// Add an update to a document from a <see cref="DocValuesUpdate"/>.
 /// The <see cref="DocValuesUpdate"/>'s value should be <c>null</c> to unset a value.
 /// Note that the value is exposed by casting to the apprpriate <see cref="DocValuesUpdate"/> subclasss.
 /// </summary>
 public abstract void AddFromUpdate(int doc, DocValuesUpdate update);