Skip to content

Commit

Permalink
fix: Resolve ES template not indexing terms for messages longer than …
Browse files Browse the repository at this point in the history
…256 characters
  • Loading branch information
driskell committed Feb 26, 2024
1 parent 710fc3c commit 99bf67f
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions lc-lib/transports/es/templates.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const (
// Elasticsearch 8.x
esTemplate8 = `{
"index_patterns": $INDEXPATTERNS$,
"version": 80001,
"version": 80002,
"settings": {
"index.refresh_interval": "5s",
"number_of_shards": 1
Expand All @@ -46,7 +46,7 @@ const (
"type": "text",
"norms": false,
"fields": {
"keyword": { "type": "keyword", "ignore_above": 256 }
"keyword": { "type": "keyword", "ignore_above": 8191 }
}
}
}
Expand Down Expand Up @@ -91,7 +91,7 @@ const (
// Elasticsearch 6.x
esTemplate6 = `{
"index_patterns": $INDEXPATTERNS$,
"version": 60001,
"version": 60002,
"settings": {
"index.refresh_interval": "5s"
},
Expand All @@ -114,7 +114,7 @@ const (
"type": "text",
"norms": false,
"fields": {
"keyword": { "type": "keyword", "ignore_above": 256 }
"keyword": { "type": "keyword", "ignore_above": 8191 }
}
}
}
Expand Down Expand Up @@ -156,7 +156,7 @@ const (
// Elasticsearch 5.x
esTemplate5 = `{
"template": $INDEXPATTERNSINGLE$,
"version": 50001,
"version": 50002,
"settings": {
"index.refresh_interval": "5s"
},
Expand All @@ -180,7 +180,7 @@ const (
"type": "text",
"norms": false,
"fields": {
"keyword": { "type": "keyword", "ignore_above": 256 }
"keyword": { "type": "keyword", "ignore_above": 8191 }
}
}
}
Expand Down

0 comments on commit 99bf67f

Please sign in to comment.