Skip to content

Commit

Permalink
In the default templates, specify geoip.postal_code to be type 'keywo…
Browse files Browse the repository at this point in the history
…rd', to avoid incorrectly autodetecting as type 'date'.
  • Loading branch information
smokris committed Jul 5, 2018
1 parent 6017c26 commit cce3abe
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,8 @@
"ip": { "type": "ip", "doc_values" : true },
"location" : { "type" : "geo_point", "doc_values" : true },
"latitude" : { "type" : "float", "doc_values" : true },
"longitude" : { "type" : "float", "doc_values" : true }
"longitude" : { "type" : "float", "doc_values" : true },
"postal_code" : { "type" : "string", "not_analyzed" : true }
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@
"ip": { "type": "ip" },
"location" : { "type" : "geo_point" },
"latitude" : { "type" : "half_float" },
"longitude" : { "type" : "half_float" }
"longitude" : { "type" : "half_float" },
"postal_code" : { "type" : "keyword" }
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@
"ip": { "type": "ip" },
"location" : { "type" : "geo_point" },
"latitude" : { "type" : "half_float" },
"longitude" : { "type" : "half_float" }
"longitude" : { "type" : "half_float" },
"postal_code" : { "type" : "keyword" }
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@
"ip": { "type": "ip" },
"location" : { "type" : "geo_point" },
"latitude" : { "type" : "half_float" },
"longitude" : { "type" : "half_float" }
"longitude" : { "type" : "half_float" },
"postal_code" : { "type" : "keyword" }
}
}
}
Expand Down

0 comments on commit cce3abe

Please sign in to comment.