I post a query to elasticsearch get data of index.. I only need these fields data and how many documents found information... but there is "took","shards" and inside of a document "_id","_index","_score". these are un necessary for my purpose..
Here my simple request:
query='{"query": {"match_all": {}}}';
$.ajax({
url: "http://localhost:9200/webproxylog/_search?source=" + query,
type:"GET",
dataType: "json",
data: $.param(params),
success: function(data) {...
I check the response data in success method here how it seems:
I just want to get hits which documents in, and in documents I just want to "_source" object that have fields data."took","shards","_id","_index", unneccessary, how can I disable them