Skip to content

Commit abaef82

Browse files
committed
revert to use .raw instead of .keyword
In PR logstash-plugins#462 (comment) we used `.keyword` to match ES's change in default behavior. Both approaches, using `.keyword` to match ES for consistency and using `.raw` to match existing logstash data has pros/cons. I think at this time it is wise to err on the side of easy-upgrade-path so reverting this back to using `.raw` as before Fixes logstash-plugins#466
1 parent c3b4d9c commit abaef82

File tree

3 files changed

+2
-95
lines changed

3 files changed

+2
-95
lines changed

lib/logstash/outputs/elasticsearch/elasticsearch-template-es5x.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"mapping" : {
2323
"type" : "text", "norms" : false,
2424
"fields" : {
25-
"keyword" : { "type": "keyword" }
25+
"raw" : { "type": "keyword" }
2626
}
2727
}
2828
}

spec/integration/outputs/templates_5x_spec.rb

Lines changed: 0 additions & 93 deletions
This file was deleted.

spec/integration/outputs/templates_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
require_relative "../../../spec/es_spec_helper"
22

3-
describe "index template expected behavior", :integration => true, :version_less_than_5x => true do
3+
describe "index template expected behavior", :integration => true do
44
subject! do
55
require "logstash/outputs/elasticsearch"
66
settings = {

0 commit comments

Comments
 (0)