Filter out metadata fields and only return source fields in elasticsearch

后端 未结 4 910
时光取名叫无心
时光取名叫无心 2020-12-05 04:44

Is there a way to tell elasticsearch to not return any metadata? Currently I can select which fields I want to be returned in source. But I only want fields in source. I wou

4条回答
  •  萌比男神i
    2020-12-05 05:14

    It's not that difficult if we know it :)

    http://localhost:9200/***{index_name}***/***{type}***/_search?pretty&filter_path=took,hits.hits._id,hits.hits._score,**hits.hits._source**
    

提交回复
热议问题