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

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

Hey,

check out source filtering

--Alex

1 Like

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

1 Like

:slight_smile: thankx

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