Fix empty mappings for old ES versions
This commit is contained in:
parent
84cf6c79c2
commit
20033709cf
6 changed files with 62 additions and 13 deletions
|
|
@ -220,9 +220,7 @@ class FOSElasticaExtension extends Extension
|
|||
|
||||
foreach (array(
|
||||
'dynamic_templates',
|
||||
'index_analyzer',
|
||||
'properties',
|
||||
'search_analyzer',
|
||||
'_all',
|
||||
'_boost',
|
||||
'_id',
|
||||
|
|
@ -239,7 +237,9 @@ class FOSElasticaExtension extends Extension
|
|||
|
||||
foreach (array(
|
||||
'persistence',
|
||||
'serializer'
|
||||
'serializer',
|
||||
'index_analyzer',
|
||||
'search_analyzer',
|
||||
) as $field) {
|
||||
$typeConfig['config'][$field] = array_key_exists($field, $type) ?
|
||||
$type[$field] :
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue