Skip to content

Commit 3a0bc09

Browse files
hacfipolyfractal
authored andcommitted
[DOCS] Replace deprecated string type with keyword type for index operations (#736)
1 parent 1b9bb18 commit 3a0bc09

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

docs/index-operations.asciidoc

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ $params = [
4141
],
4242
'properties' => [
4343
'first_name' => [
44-
'type' => 'string',
44+
'type' => 'keyword',
4545
'analyzer' => 'standard'
4646
],
4747
'age' => [
@@ -104,36 +104,36 @@ $params = [
104104
'_default_' => [ <4>
105105
'properties' => [
106106
'title' => [
107-
'type' => 'string',
107+
'type' => 'keyword',
108108
'analyzer' => 'reuters',
109109
'term_vector' => 'yes',
110110
'copy_to' => 'combined'
111111
],
112112
'body' => [
113-
'type' => 'string',
113+
'type' => 'keyword',
114114
'analyzer' => 'reuters',
115115
'term_vector' => 'yes',
116116
'copy_to' => 'combined'
117117
],
118118
'combined' => [
119-
'type' => 'string',
119+
'type' => 'keyword',
120120
'analyzer' => 'reuters',
121121
'term_vector' => 'yes'
122122
],
123123
'topics' => [
124-
'type' => 'string',
124+
'type' => 'keyword',
125125
'index' => 'not_analyzed'
126126
],
127127
'places' => [
128-
'type' => 'string',
128+
'type' => 'keyword',
129129
'index' => 'not_analyzed'
130130
]
131131
]
132132
],
133133
'my_type' => [ <5>
134134
'properties' => [
135135
'my_field' => [
136-
'type' => 'string'
136+
'type' => 'keyword'
137137
]
138138
]
139139
]
@@ -214,7 +214,7 @@ $params = [
214214
],
215215
'properties' => [
216216
'first_name' => [
217-
'type' => 'string',
217+
'type' => 'keyword',
218218
'analyzer' => 'standard'
219219
],
220220
'age' => [

0 commit comments

Comments
 (0)