Skip to content

Entities Indexing error #274

@erikattechslice

Description

@erikattechslice

https://github.com/erikattechslice/tripal_elasticsearch I have a fork and trying to get the module to work with ES7. Getting the below error for entities index:

site http://default] [TRIPAL ERROR] [TRIPAL_ELASTICSEARCH] {"error":{"root_cause":[{"type":"illegal_argument_exception","reason":"mapper [entity_id] cannot be changed from type [integer] to [long]"}],"type":"illegal_argument_exception","reason":"mapper [entity_id] cannot be changed from type [integer] to [long]"},"status":400}

also seeing this warn spam from the cron:

Invalid argument supplied for foreach() file_entity.file.inc:248 [warning]
Invalid argument supplied for foreach() file_entity.file.inc:248 [warning]
Invalid argument supplied for foreach() file_entity.file.inc:248 [warning]
Invalid argument supplied for foreach() file_entity.file.inc:248 [warning]
Invalid argument supplied for foreach() file_entity.file.inc:248 [warning]
Invalid argument supplied for foreach() file_entity.file.inc:248

i tried to force tine entity_id to an int on line 175 of EntiitesIndexJob.php with 👍
$all[] = (object) [
'entity_id' => (int)($entity->id),
'title' => $title,
'bundle_label' => $record->bundle_label,
'content' => $content,
];

any thoughts? Thanks for the help

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions