File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ $params = [
41
41
],
42
42
'properties' => [
43
43
'first_name' => [
44
- 'type' => 'string ',
44
+ 'type' => 'keyword ',
45
45
'analyzer' => 'standard'
46
46
],
47
47
'age' => [
@@ -104,36 +104,36 @@ $params = [
104
104
'_default_' => [ <4>
105
105
'properties' => [
106
106
'title' => [
107
- 'type' => 'string ',
107
+ 'type' => 'keyword ',
108
108
'analyzer' => 'reuters',
109
109
'term_vector' => 'yes',
110
110
'copy_to' => 'combined'
111
111
],
112
112
'body' => [
113
- 'type' => 'string ',
113
+ 'type' => 'keyword ',
114
114
'analyzer' => 'reuters',
115
115
'term_vector' => 'yes',
116
116
'copy_to' => 'combined'
117
117
],
118
118
'combined' => [
119
- 'type' => 'string ',
119
+ 'type' => 'keyword ',
120
120
'analyzer' => 'reuters',
121
121
'term_vector' => 'yes'
122
122
],
123
123
'topics' => [
124
- 'type' => 'string ',
124
+ 'type' => 'keyword ',
125
125
'index' => 'not_analyzed'
126
126
],
127
127
'places' => [
128
- 'type' => 'string ',
128
+ 'type' => 'keyword ',
129
129
'index' => 'not_analyzed'
130
130
]
131
131
]
132
132
],
133
133
'my_type' => [ <5>
134
134
'properties' => [
135
135
'my_field' => [
136
- 'type' => 'string '
136
+ 'type' => 'keyword '
137
137
]
138
138
]
139
139
]
@@ -214,7 +214,7 @@ $params = [
214
214
],
215
215
'properties' => [
216
216
'first_name' => [
217
- 'type' => 'string ',
217
+ 'type' => 'keyword ',
218
218
'analyzer' => 'standard'
219
219
],
220
220
'age' => [
You can’t perform that action at this time.
0 commit comments