Skip to content
This repository has been archived by the owner on Mar 21, 2023. It is now read-only.

Commit

Permalink
Change string index to not_analyzed.
Browse files Browse the repository at this point in the history
  • Loading branch information
YaSuenag committed Jan 31, 2016
1 parent 84a4459 commit c0a9dff
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion etc/hsbeat-template.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,20 @@
"template": "hsbeat-*",
"mappings": {
"_default_": {
"_source": {
"enabled": false
},
"dynamic_templates": [
{
"string_template": {
"match_mapping_type": "string",
"mapping": {
"type": "string",
"index": "not_analyzed"
}
}
}
],
"properties": {
"@timestamp": {
"type": "date"
Expand All @@ -20,7 +34,8 @@
"type": "long"
},
"str_val": {
"type": "string"
"type": "string",
"index": "not_analyzed"
}
}
}
Expand Down

0 comments on commit c0a9dff

Please sign in to comment.