Skip to content

Commit

Permalink
Remove hardcoded NID #32
Browse files Browse the repository at this point in the history
  • Loading branch information
ademarco committed Feb 13, 2017
1 parent 630fe6b commit 567de8c
Showing 1 changed file with 5 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ protected function getDocumentsArray() {

// Add a row for each language.
$this->documentsArray[$document->getId()] = [
'nid' => $document->getId(),
'id' => $document->getId(),
'language' => $document->getDefaultLanguage(),
'raw' => $document_raw,
'processed' => $document,
Expand All @@ -78,7 +78,7 @@ protected function getDocumentsArray() {

// Add a row for each language.
$this->documentsArray[$document->getId()] = [
'nid' => $document->getId(),
'id' => $document->getId(),
'language' => $document->getDefaultLanguage(),
'raw' => $document_raw,
'processed' => $document,
Expand Down Expand Up @@ -156,7 +156,6 @@ public function prepareRow(Row $row) {
private function getMappingData() {
if (empty($this->mappingData)) {
$this->mappingData = [
'nid' => '_id',
'bundle' => 'type',
'created' => 'created',
'changed' => 'changed',
Expand All @@ -180,10 +179,9 @@ public function __toString() {
*/
public function getIds() {
return [
'nid' => [
'type' => 'integer',
'unsigned' => FALSE,
'size' => 'big',
'id' => [
'type' => 'string',
'is_ascii' => TRUE,
],
];
}
Expand Down

0 comments on commit 567de8c

Please sign in to comment.