Querying Dynamic Aggregation In Elasticsearch With AJAX
I'm trying to build an aggregation dynamically based on a group of fields queried using the mapping. Here's the code. $(document).ready(function(){
Solution 1:
You need to sent your query as POST rather than GET. When you are sending it as GET , though you are hitting the _search API , the query part is not considered. Hence you will just get the top N documents out of the index.
Post a Comment for "Querying Dynamic Aggregation In Elasticsearch With AJAX"