I want to get specified fields in elasticsearch 5.1 . For example select x,y from table.
1 Like
use "docvalue_fields" ,
GET /_search
{
"query" : {
"match_all": {}
},
"docvalue_fields" : ["test1", "test2"]
}
1 Like
thankx
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.