From ccedb1dfab375093301a5047f805a2cebf662fdc Mon Sep 17 00:00:00 2001 From: Anthony Malkoun Date: Mon, 24 May 2021 16:23:18 +1000 Subject: [PATCH] Remove references to type deprecated in ES7 --- src/ElasticSearch/Parameters/Factory/TideSearchIndexFactory.php | 1 - tests/behat/features/search.feature | 1 - 2 files changed, 2 deletions(-) diff --git a/src/ElasticSearch/Parameters/Factory/TideSearchIndexFactory.php b/src/ElasticSearch/Parameters/Factory/TideSearchIndexFactory.php index da667ab..a594079 100644 --- a/src/ElasticSearch/Parameters/Factory/TideSearchIndexFactory.php +++ b/src/ElasticSearch/Parameters/Factory/TideSearchIndexFactory.php @@ -43,7 +43,6 @@ public static function bulkDelete(IndexInterface $index, array $ids) { $params['body'][] = [ 'delete' => [ '_index' => $params['index'], - '_type' => $params['type'], '_id' => $id, ], ]; diff --git a/tests/behat/features/search.feature b/tests/behat/features/search.feature index d1d8c60..c0c6c89 100644 --- a/tests/behat/features/search.feature +++ b/tests/behat/features/search.feature @@ -45,7 +45,6 @@ Feature: Ensure Search API on Bay Elasticsearch work. And the JSON node "hits" should exist And the JSON node "hits.hits" should exist And the JSON node "hits.hits[0]._index" should be equal to "elasticsearch_index_drupal_node" - And the JSON node "hits.hits[0]._type" should be equal to "node" And the JSON node "hits.hits[0]._source" should exist And the JSON node "hits.hits[0]._source.title[0]" should be equal to "TESTTITLEPUBLISHED" And the JSON node "hits.hits[0]._source.body[0]" should be equal to "TESTBODY"