From 91d596afbcd62565e3537621d83c9204bb9502a0 Mon Sep 17 00:00:00 2001 From: Will Taylor-Jackson Date: Tue, 10 Sep 2024 18:27:33 +0100 Subject: [PATCH] feat: allow the ID field to be indexed --- src/QueryGrammar.php | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/QueryGrammar.php b/src/QueryGrammar.php index 6deb9aa..2815fd8 100644 --- a/src/QueryGrammar.php +++ b/src/QueryGrammar.php @@ -1166,11 +1166,6 @@ public function compileInsert(Builder $builder, array $values): array } $params['body'][] = ['index' => $index]; - - if (isset($doc['id'])) { - unset($doc['id']); - } - $params['body'][] = $doc; }