Skip to content
This repository has been archived by the owner on Jun 1, 2024. It is now read-only.

Commit

Permalink
Fix field index option for 6.1+ template to use boolean value. (#148)
Browse files Browse the repository at this point in the history
* Replaced index='analyzed' with index='true'

* #140 - fixed v6 template unit test
  • Loading branch information
jnus authored and mivano committed Jan 23, 2018
1 parent 9e75809 commit 8a7b58b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ private static object GetTemplateESv6(
},
properties = new Dictionary<string, object>
{
{"message", new {type = "text", index = "analyzed"}},
{"message", new {type = "text", index = "true"}},
{
"exceptions", new
{
Expand All @@ -124,8 +124,8 @@ private static object GetTemplateESv6(
{"Depth", new {type = "integer"}},
{"RemoteStackIndex", new {type = "integer"}},
{"HResult", new {type = "integer"}},
{"StackTraceString", new {type = "text", index = "analyzed"}},
{"RemoteStackTraceString", new {type = "text", index = "analyzed"}},
{"StackTraceString", new {type = "text", index = "true"}},
{"RemoteStackTraceString", new {type = "text", index = "true"}},
{
"ExceptionMessage", new
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"properties": {
"message": {
"type": "text",
"index": "analyzed"
"index": "true"
},
"exceptions": {
"type": "nested",
Expand All @@ -55,11 +55,11 @@
},
"StackTraceString": {
"type": "text",
"index": "analyzed"
"index": "true"
},
"RemoteStackTraceString": {
"type": "text",
"index": "analyzed"
"index": "true"
},
"ExceptionMessage": {
"type": "object",
Expand Down

0 comments on commit 8a7b58b

Please sign in to comment.