Skip to content
Browse files

Guide: Date Histogram Facet examples fix

  • Loading branch information...
1 parent c3c21dc commit 742cba639ea7fa7d0f4179dadb77727a04d3f8cc @Simek Simek committed
Showing with 2 additions and 2 deletions.
  1. +2 −2 guide/reference/api/search/facets/date-histogram-facet.textile
View
4 guide/reference/api/search/facets/date-histogram-facet.textile
@@ -70,7 +70,7 @@ p. The date_histogram facet allows to use a different key (of type date) which c
},
"facets" : {
"histo1" : {
- "histogram" : {
+ "date_histogram" : {
"key_field" : "timestamp",
"value_field" : "price",
"interval" : "day"
@@ -91,7 +91,7 @@ p. A script can be used to compute the value that will then be used to compute t
},
"facets" : {
"histo1" : {
- "histogram" : {
+ "date_histogram" : {
"key_field" : "timestamp",
"value_script" : "doc['price'].value * 2",
"interval" : "day"

0 comments on commit 742cba6

Please sign in to comment.
Something went wrong with that request. Please try again.