I have a es index which is of the following structure User: 1, timestamp: `13-5-2014`, comment: "abcded" User: 2, timestamp: `10-5-2014`, comment: "abcded" User: 1, timestamp: `12-5-2014`, comment: "abcded" User: 2, timestamp: `8-5-2014`, comment: "abcded" User: 3, timestamp: `5-5-2014`, comment: "abcded" User: 3, timestamp: `7-5-2014`, comment: "abcded"
I have been trying to think of a query using facets or aggregations to get the last comment of the month for each user. For example the result would be from the above the *bold* only *User: 1, timestamp: `13-5-2014`, comment: "abcded"* *User: 2, timestamp: `10-5-2014`, comment: "abcded"* *User: 3, timestamp: `7-5-2014`, comment: "abcded"* Is there any way to do this? -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/13605f9a-7506-401a-b918-6aaeadbf803e%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
