Source Filtering in JAVA REST API

Hi,

Im trying to do source filtering with the specific key "primary_key" in JAVA REST API
below is the elasticsearch query which gives me correct results how can i do the same in API

GET _search/
{
"_source": {
"includes": [ "primary_key" ]
},
"query": {
"match_all": {}
}
}

Thanks

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