i am currently using Elastic.js (Angular.js integration) to query Elasticsearch.
I have an Elasticsearch query that is as follows:
{
"query" : {
"range" : {
"created_at" : {
"from" : "2013-07-21T03:55:32.000"
}
}
}, "facets" : {
"tag" : {
"terms" : {
"field" : "hashtag.text",
"size" : 10
}
}
}
}
I have a query that works without the data range filter, the query using Angular and Elastic.js is :
.query(ejs.QueryStringQuery($rootScope.globalVariable || '*'))
.facet(
ejs.TermsFacet('tags')
.field('hashtag.text')
.size(50))
.doSearch();
I have tried many combinations to add the date range filter to the Elastic.js query.
Can anyone please give some ideas/clues on how I can do this?
Many thanks