From 9e8f40d117afef7197f47ae8fddb61ed819fe149 Mon Sep 17 00:00:00 2001 From: Rowan Seymour Date: Tue, 14 May 2024 10:10:38 -0500 Subject: [PATCH] Remove _type field from index and delete commands --- indexers/base.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/indexers/base.go b/indexers/base.go index 181800a..348ea35 100644 --- a/indexers/base.go +++ b/indexers/base.go @@ -16,10 +16,10 @@ import ( ) // indexes a document -const indexCommand = `{ "index": { "_id": %d, "_type": "_doc", "version": %d, "version_type": "external", "routing": %d} }` +const indexCommand = `{ "index": { "_id": %d, "version": %d, "version_type": "external", "routing": %d} }` // deletes a document -const deleteCommand = `{ "delete" : { "_id": %d, "_type": "_doc", "version": %d, "version_type": "external", "routing": %d} }` +const deleteCommand = `{ "delete" : { "_id": %d, "version": %d, "version_type": "external", "routing": %d} }` type Stats struct { Indexed int64 // total number of documents indexed