Retrieve selected fields from a search - Does it work?

I have user's index. Okay.

I wonna get limited list of my index fields. I read documentation and found it.

I use _source query and it doesn't work

{
"_source": {
    "includes": [ "is_online"],
    "excludes": ["login_phone"]
  }
}

I use Fields query and it also doesn't work(

{
"_source": false,
"fields" : ["is_online"]
}

What am I doing wrong?

I found the solutuon.... I should use POST request, Not Get. And It's working

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