I am using angularjs and elasticsearch.angular.js. I have build a dynamic JSON query object based on user requests. Is there a way to in ES javascript to pass it to the search api?
In the below example, myJSONQUery is the JSON object. client.search({ index: 'myindex*', body :{ filtered : { myJSONQUery } } }).then(function (response) { console.info(JSON.stringify(response)); }); -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/4d71025e-8a15-4a8c-889d-9202cfa25c74%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.