Community Edition, Installation Elasticsearch

 

Hallo zusammen,

ich bekomme Elasticsearch in Verbindung mit Shopware einfach nicht zum Laufen. Ich habe mich an dieser Anleitung orientiert Shopware 6: Using elasticsearch . Elasticsearch läuft, die .env ist wie in der Anleitung konfiguriert.

Führe ich den Befehl

bin/console dal:refresh:index

aus bekomme ich folgende Fehlermeldung (DOMAIN.de wurde von mir für das Forumkommentar als Platzhalter eingetragen)

bin/console dal:refresh:index
15:47:34 WARNING [app] Request Failure: ["method" => "HEAD","uri" => "http://DOMAIN.de/sw_product_2fbb5fe2e29a4d70aa5854ce7ce3e20b_1611589654","headers" => ["Host" => ["DOMAIN.de"],"Content-Type" => ["application/json"],"Accept" => ["application/json"],"User-Agent" => ["elasticsearch-php/7.2.2 (Linux 4.15.0-129-generic; PHP 7.2.24-0ubuntu0.18.04.7)"]],"HTTP code" => 404,"duration" => 0.001679,"error" => "null"]
15:47:34 WARNING [app] Response [null]
15:47:34 WARNING [app] Request Failure: ["method" => "PUT","uri" => "http://DOMAIN.de/sw_product_2fbb5fe2e29a4d70aa5854ce7ce3e20b_1611589654","headers" => ["Host" => ["DOMAIN.de"],"Content-Type" => ["application/json"],"Accept" => ["application/json"],"User-Agent" => ["elasticsearch-php/7.2.2 (Linux 4.15.0-129-generic; PHP 7.2.24-0ubuntu0.18.04.7)"]],"HTTP code" => 400,"duration" => 0.003608,"error" => "{"error":{"root_cause":[{"type":"illegal_argument_exception","reason":"unknown setting [index.mapping.nested_objects.limit] did you mean any of [index.mapping.nested_fields.limit, index.mapping.total_fields.limit]?"}],"type":"illegal_argument_exception","reason":"unknown setting [index.mapping.nested_objects.limit] did you mean any of [index.mapping.nested_fields.limit, index.mapping.total_fields.limit]?"},"status":400}"]
15:47:34 WARNING [app] Response ["{"error":{"root_cause":[{"type":"illegal_argument_exception","reason":"unknown setting [index.mapping.nested_objects.limit] did you mean any of [index.mapping.nested_fields.limit, index.mapping.total_fields.limit]?"}],"type":"illegal_argument_exception","reason":"unknown setting [index.mapping.nested_objects.limit] did you mean any of [index.mapping.nested_fields.limit, index.mapping.total_fields.limit]?"},"status":400}"]
15:47:34 ERROR [console] Error thrown while running command "dal:refresh:index". Message: "{"error":{"root_cause":[{"type":"illegal_argument_exception","reason":"unknown setting [index.mapping.nested_objects.limit] did you mean any of [index.mapping.nested_fields.limit, index.mapping.total_fields.limit]?"}],"type":"illegal_argument_exception","reason":"unknown setting [index.mapping.nested_objects.limit] did you mean any of [index.mapping.nested_fields.limit, index.mapping.total_fields.limit]?"},"status":400}" ["exception" => Elasticsearch\Common\Exceptions\BadRequest400Exception^ { …},"command" => "dal:refresh:index","message" => "{"error":{"root_cause":[{"type":"illegal_argument_exception","reason":"unknown setting [index.mapping.nested_objects.limit] did you mean any of [index.mapping.nested_fields.limit, index.mapping.total_fields.limit]?"}],"type":"illegal_argument_exception","reason":"unknown setting [index.mapping.nested_objects.limit] did you mean any of [index.mapping.nested_fields.limit, index.mapping.total_fields.limit]?"},"status":400}"]

 Hat jeamand eine Idee wo der Fehler her kommt und wie ich die Elasticserach zum laufen bekommen?

Danke!

Ich glaube ich bin ein Stück weiter. Die Kernaussage der Fehlermeldung ist ja dass das Setting

index.mapping.nested_objects.limit

in Elasticsearch nicht existiert. Meine installierte ES Version ist 6.2.4, lauf ES Doku kann ich von “index.mapping.nested_fields.limit” erst ab version 6.8 finden. Kann es sein das diese ES Version den Parameter nicht hat und das Problem daher kommt?

Nein das scheint es auch nicht zu sein, in der ES 6.2 Doku gibt es “index.mapping.nested_fields.limit” schon Mapping | Elasticsearch Reference [6.2] | Elastic  Foot-in-Mouth