How to get specified fields in elasticsearch 5.1 (using curl)?


(Akshay Patil) #1

I want to get specified fields in elasticsearch 5.1 . For example select x,y from table.


(Alexander Reelsen) #2

Hey,

check out source filtering

--Alex


(Amar - Persistent Systems) #3

use "docvalue_fields" ,
GET /_search
{
"query" : {
"match_all": {}
},
"docvalue_fields" : ["test1", "test2"]
}


(Akshay Patil) #4

:slight_smile: thankx


(system) #5

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.