Hi,
It's possible to create a date histogram facet using a string field to
retrieve the total of each hit spread by a day interval?
To ilustrate the problem.
I have this mapping:
{
"mappings": {
"log": {
"properties": {
"session": {"type": "string"},
"visitor": {"type": "string"},
"site": {"type": "integer"},
"access": {"type": "date", "format" : "yyyy-MM-dd
HH:mm:ss"},
"request": {"type": "string", "index" : "not_analyzed"},
"referer": {"type": "string", "index" : "not_analyzed"},
"first": {"type": "integer"},
"ip": {"type": "ip"},
"user_agent": {"type": "string"},
"city": {"type": "string", "index" : "not_analyzed"},
"country": {"type": "string", "index" : "not_analyzed"},
"ll": {"type": "geo_point"}
}
}
}
}
The request field is an url, like "/", "/about.html", "/contact.html", so
on...
I need to create a date histogram with a day interval an retrieve the sum
of each request.
The result that i want is something like:
2013-09-01 - 10 requests
2013-09-02 - 5 requests
2013-09-03 - 8 requests
2013-09-04 - 12 requests
I'm reading the elasticsearch docs, but i just find how to do if my field
is numeric using the key_field and value_field.
Well, thanks in advance for who try to help me.
Best regards
Ricardo Monteiro
SitePX - http://www.sitepx.com
Facebook - https://www.facebook.com/sitepx
Twitter - https://twitter.com/sitepx
--
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.