# Elastic Search - No handler for type string declared on field name

**URL:** https://forum.shopware.com/t/elastic-search-no-handler-for-type-string-declared-on-field-name/60494
**Category:** Programmierung
**Created:** [18. Juli 2019 um 07:01 UTC](https://forum.shopware.com/t/elastic-search-no-handler-for-type-string-declared-on-field-name/60494 "2019-07-18T07:01:35Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![ottscho](https://avatars.discourse-cdn.com/v4/letter/o/7ba0ec/32.png) [@ottscho](https://forum.shopware.com/u/ottscho)
#### Post date: [18. Juli 2019 um 07:01 UTC](https://forum.shopware.com/t/elastic-search-no-handler-for-type-string-declared-on-field-name/60494/1 "2019-07-18T07:01:35Z")

</div>

Guten Morgen,

ich versuche ES zu integrieren. Im Testsystem (gleicher Shop) läuft ES 6.5.1 mit SW 5.5.10 ohne Probleme.  
Versuche ich im Echsystem den Index zu Starten, erscheint folgende Meldung:

&nbsp;mapper\_parsing\_exception: No handler for type [string] declared on field [name]

Scheinbar greift die Logik der ES 6 Version nicht. Dort wurde das Feld von string auf text geändert.&nbsp;  
Ich kann mir&nbsp;den Fehler aber nicht erklären, da es im Testsystem funktioniert. Hat jemand eine Idee dazu?

Die Config sieht so aus:

```
'es' =>
	array(
		'enabled' => false,
		'max_result_window' => 1000000,
		'batchsize' => 10000,
		'number_of_replicas' => 0,
		'number_of_shards' => null,
		'total_fields_limit' => 10000,
		'version' => '6.5.1',
		'client' => array(
		'hosts' => array(
				'192.168.0.20:9200'
				)
		)
	),

```

&nbsp;

Besten Dank & Viele Grüße

Ottscho

---

<div class="post-metadata">

### Author: ![Moritz\_Naczenski](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/moritz_naczenski/32/7792_2.png) [@Moritz\_Naczenski](https://forum.shopware.com/u/Moritz_Naczenski)
#### Post date: [18. Juli 2019 um 07:10 UTC](https://forum.shopware.com/t/elastic-search-no-handler-for-type-string-declared-on-field-name/60494/2 "2019-07-18T07:10:48Z")

</div>

[https://developers.shopware.com/sysadmins-guide/elasticsearch-setup/#define-elasticsaerch-dynamic-mapping](https://developers.shopware.com/sysadmins-guide/elasticsearch-setup/#define-elasticsaerch-dynamic-mapping)

Vielleicht mal das dynamic Mapping deaktivieren?

&nbsp;

Unabhängig davon ist Elasticsearch natürlich für den Betrieb von mehreren Nodes ausgelegt - ein Single-Node Setup ist eigentlich nur für die Entwicklung gedacht, auf Produktivsystemen wäre hier sicherlich ein Multi-Node Setup empfehlenswert.

---

<div class="post-metadata">

### Author: ![ottscho](https://avatars.discourse-cdn.com/v4/letter/o/7ba0ec/32.png) [@ottscho](https://forum.shopware.com/u/ottscho)
#### Post date: [18. Juli 2019 um 10:49 UTC](https://forum.shopware.com/t/elastic-search-no-handler-for-type-string-declared-on-field-name/60494/3 "2019-07-18T10:49:02Z")

</div>

Hi Moritz,

ich habe das Problem gefunden. ES ist in der Config noch auf false. Warum auch immer, liefert das Bundle dann ES2 als Version.  
Was ja quatsch ist.

[https://github.com/shopware/shopware/blob/v5.5.10/engine/Shopware/Bundle/ESIndexingBundle/DependencyInjection/Factory/TextMappingFactory.php#L60](https://github.com/shopware/shopware/blob/v5.5.10/engine/Shopware/Bundle/ESIndexingBundle/DependencyInjection/Factory/TextMappingFactory.php#L60)

Mit SW 5.6 hat sich dies ja dann erledigt.
