add a lower case normalizer on relationships #90
This commit is contained in:
parent
e86e554024
commit
cb7e141a98
|
@ -59,7 +59,7 @@ class Elastic_Press {
|
||||||
$array_dynamic_templates = $mapping["mappings"]["post"]["dynamic_templates"];
|
$array_dynamic_templates = $mapping["mappings"]["post"]["dynamic_templates"];
|
||||||
foreach ($array_dynamic_templates as $key => $dynamic_templates) {
|
foreach ($array_dynamic_templates as $key => $dynamic_templates) {
|
||||||
if ( isset($dynamic_templates['template_meta_types'] )) {
|
if ( isset($dynamic_templates['template_meta_types'] )) {
|
||||||
$mapping["mappings"]["post"]["dynamic_templates"][$key]['template_meta_types']["mapping"]["properties"][$name_field] = ['type' => 'keyword'];
|
$mapping["mappings"]["post"]["dynamic_templates"][$key]['template_meta_types']["mapping"]["properties"][$name_field] = ['type' => 'keyword', 'normalizer' => 'lowerasciinormalizer'];
|
||||||
// $mapping["mappings"]["post"]["dynamic_templates"][$key]['template_meta_types']["mapping"]["properties"][$name_field] =
|
// $mapping["mappings"]["post"]["dynamic_templates"][$key]['template_meta_types']["mapping"]["properties"][$name_field] =
|
||||||
// ['type' => 'nested',
|
// ['type' => 'nested',
|
||||||
// 'properties' => [
|
// 'properties' => [
|
||||||
|
|
Loading…
Reference in New Issue