You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 4, 2021. It is now read-only.
It'll create the file `MyIndexConfigurator.php` in the `app` folder of your project.
94
-
You can specify index name, settings and default mapping like in the following example:
94
+
You can specify index nameand settings like in the following example:
95
95
96
96
```php
97
97
<?php
@@ -116,29 +116,10 @@ class MyIndexConfigurator extends IndexConfigurator
116
116
]
117
117
]
118
118
];
119
-
120
-
// Common mapping for all types.
121
-
protected $defaultMapping = [
122
-
'_all' => [
123
-
'enabled' => true
124
-
],
125
-
'dynamic_templates' => [
126
-
[
127
-
'es' => [
128
-
'match' => '*_es',
129
-
'match_mapping_type' => 'string',
130
-
'mapping' => [
131
-
'type' => 'string',
132
-
'analyzer' => 'es_std'
133
-
]
134
-
]
135
-
]
136
-
]
137
-
];
138
119
}
139
120
```
140
121
141
-
More about index settings and default mapping you can find in the [index management section](https://www.elastic.co/guide/en/elasticsearch/guide/current/index-management.html) of Elasticsearch documentation.
122
+
More about index settings you can find in the [index management section](https://www.elastic.co/guide/en/elasticsearch/guide/current/index-management.html) of Elasticsearch documentation.
0 commit comments