Hi
Is it possible to order the faceted results based on the avg calculated by
the facet. In my case a date_histogram facet.
sample result
"facets" : {
"date_facet"{
"_type" : "date_histogram",
"entries" : [
{
"time" : ,
"count" : ,
"min" : ,
"max" :23,
"total" : ,
"total_count" : ,
"mean" :
},
{
"time" : ,
"count" : ,
"min" : ,
"max" :32,
"total" : ,
"total_count" : ,
"mean" :
},
{
"time" : ,
"count" : ,
"min" : ,
"max" :12,
"total" : ,
"total_count" : ,
"mean" :
}
]
}
}
can i provide a scoring model where the faceted results get ordered based
on the "max" value calculated ?
how i want the results to be :
"facets" : {
"date_facet"{
"_type" : "date_histogram",
"entries" : [
{
"time" : ,
"count" : ,
"min" : ,
"max" :32,
"total" : ,
"total_count" : ,
"mean" :
},
{
"time" : ,
"count" : ,
"min" : ,
"max" :23,
"total" : ,
"total_count" : ,
"mean" :
},
{
"time" : ,
"count" : ,
"min" : ,
"max" :12,
"total" : ,
"total_count" : ,
"mean" :
}
]
}
}
thanks in advance.
Regards
Kuwar
--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.