-
Notifications
You must be signed in to change notification settings - Fork 8
Description
I am using the latest elasticsearch (7.10.0), elasticsearch-php 7.x, and tried both master and 7.x-2.3 versions of tripal-elasticsearch. I did start running into issues with creating tripal indices for elasticsearch. Keep getting errors trying to create indices. Any help would be appreciated
I tried following the tripal-elasticsearch install documentation. I tried to create the default indices and this is where I started encountering problems.
On this page: https://github.com/tripal/tripal_elasticsearch/blob/master/docs/default-indices.md I started trying to create the"Website Nodes". This gave me the following error:
{"error":{"root_cause":[{"type":"illegal_argument_exception","reason":"The [standard] token filter has been removed."}],"type":"illegal_argument_exception","reason":"The [standard] token filter has been removed."},"status":400}
When I started looking into this error. it lead me to: https://www.elastic.co/guide/en/elasticsearch/reference/current/breaking-changes-7.0.html
which looks the standard token filter was removed in 7.0. I went into this file that created the index
\sites\all\modules\tripal_elasticsearch\includes\tripal_elasticsearch.indices.form.inc
and removed the 'standard' from the token_filters' so
$token_filters = drupal_map_assoc([
'standard',
'lowercase',
]);
became:
$token_filters = drupal_map_assoc([
'lowercase',
]);
This got me a little farther to a new error:
{"error":{"root_cause":[{"type":"mapper_parsing_exception","reason":"Root mapping definition has unsupported parameters: [default : {properties={nid={type=integer, fields={raw={type=integer}}}, type={type=text, fields={raw={type=text}}}, title={type=text, fields={raw={type=text}}}, content={type=text, fields={raw={type=text}}}}}]"}],"type":"mapper_parsing_exception","reason":"Failed to parse mapping [_doc]: Root mapping definition has unsupported parameters: [default : {properties={nid={type=integer, fields={raw={type=integer}}}, type={type=text, fields={raw={type=text}}}, title={type=text, fields={raw={type=text}}}, content={type=text, fields={raw={type=text}}}}}]","caused_by":{"type":"mapper_parsing_exception","reason":"Root mapping definition has unsupported parameters: [default : {properties={nid={type=integer, fields={raw={type=integer}}}, type={type=text, fields={raw={type=text}}}, title={type=text, fields={raw={type=text}}}, content={type=text, fields={raw={type=text}}}}}]"}},"status":400}
looking into this error lead me to https://www.elastic.co/guide/en/elasticsearch/reference/current/removal-of-types.html
where it says default has been removed.
Thanks again
-Erik