Hi,
I need to search on specific fields, but respond back with entire source object matching to the fields.
I tried passing the Fields property with required field but I get response with only those fields populated with value. So I have set _source="" along with Fields but still search happening on fields other than field list.
If I use the below, then search happening on fields other than user and postdate. All I need is search only on these two fields but return the entire source object associated to the fields.
{
"fields" : ["user", "postDate"],
"_source": "",
"query" : {
"term" : { "user" : "kimchy" }
}
}
Please help me on this.