We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2c1fd67 commit 4bd08f6Copy full SHA for 4bd08f6
1 file changed
src/Response/ResultMapper.php
@@ -115,7 +115,7 @@ private function mapHit(
115
$hit['_source'] ?? [],
116
$position,
117
$hit['_index'],
118
- $hit['_type'],
+ $hit['_type'] ?? '_doc',
119
$hit['_id'],
120
$hit['_score'] ?? 1,
121
$hit['version'] ?? 0,
@@ -146,7 +146,7 @@ public function mapBulkAction(
146
return new \Spameri\ElasticQuery\Response\Result\BulkAction(
147
$actionType,
148
$bulkAction['_index'],
149
- $bulkAction['_type'],
+ $bulkAction['_type'] ?? '_doc',
150
$bulkAction['_id'],
151
$bulkAction['_version'],
152
$bulkAction['result'],
0 commit comments