Suppose I have 3 fields with srcip,dstip and name.
And I search with search function from opensearcthpy and it work fine.
But I want to return only name field. How can I implement the given query?
The query DSL just like:
GET /_search
{
"_source": [ "name" ],
"query": {
"match": {
"name": "test"
}
}
}
1 Like