Skip to content

Commit

Permalink
Merge pull request #7 from Cyber-Duck/feature/fix-duplicate-id-issue
Browse files Browse the repository at this point in the history
ElasticSearch document ID naming convention has been changed to "ID" …
  • Loading branch information
waiyanhein authored Jun 15, 2020
2 parents 42af543 + 050d6cb commit 3a90c64
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/DataObject/PrimitiveDataObjectFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ public function getJSON(): string
'index' => [
'_index' => $this->index->getName(),
'_type' => $this->index->getType(),
'_id' => $record->ID,
'_id' => $record->ID . $record->ClassName,
],
];
$data[] = json_encode($settings)."\n".json_encode($record);
Expand Down

0 comments on commit 3a90c64

Please sign in to comment.