Skip to content

Commit

Permalink
[DOCS] Replace deprecated string type with keyword type for index ope…
Browse files Browse the repository at this point in the history
…rations (#736)
  • Loading branch information
hacfi authored and polyfractal committed Apr 4, 2018
1 parent 2d11682 commit a550507
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions docs/index-operations.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ $params = [
],
'properties' => [
'first_name' => [
'type' => 'string',
'type' => 'keyword',
'analyzer' => 'standard'
],
'age' => [
Expand Down Expand Up @@ -104,36 +104,36 @@ $params = [
'_default_' => [ <4>
'properties' => [
'title' => [
'type' => 'string',
'type' => 'keyword',
'analyzer' => 'reuters',
'term_vector' => 'yes',
'copy_to' => 'combined'
],
'body' => [
'type' => 'string',
'type' => 'keyword',
'analyzer' => 'reuters',
'term_vector' => 'yes',
'copy_to' => 'combined'
],
'combined' => [
'type' => 'string',
'type' => 'keyword',
'analyzer' => 'reuters',
'term_vector' => 'yes'
],
'topics' => [
'type' => 'string',
'type' => 'keyword',
'index' => 'not_analyzed'
],
'places' => [
'type' => 'string',
'type' => 'keyword',
'index' => 'not_analyzed'
]
]
],
'my_type' => [ <5>
'properties' => [
'my_field' => [
'type' => 'string'
'type' => 'keyword'
]
]
]
Expand Down Expand Up @@ -214,7 +214,7 @@ $params = [
],
'properties' => [
'first_name' => [
'type' => 'string',
'type' => 'keyword',
'analyzer' => 'standard'
],
'age' => [
Expand Down

0 comments on commit a550507

Please sign in to comment.