updateDoc method

Future<bool> updateDoc({
  1. required Map<String, dynamic> doc,
  2. String? id,
  3. bool merge = false,
})

Update doc in index.

Implementation

Future<bool> updateDoc({
  required Map<String, dynamic> doc,
  String? id,
  bool merge = false,
}) =>
    _client.updateDoc(
      index: name,
      doc: doc,
      type: type ?? '_doc',
      id: id,
      merge: merge,
    );