Nested data type limit

Hello team,

I have more than 100 nested items in my project and while fetching i need to get only 10 based on grouping.Can you please help me how to get this.

Hi
welcome, you can filter content of _source field returned like this

GET /_search
{
"_source": [ "obj1.", "obj2." ],
"query" : {
"term" : { "user" : "kimchy" }
}
}

But this _source how will it affect nested items count ?

Could you post an example of your desired?

''''''''''''''''''
"productionYear":2014,
"amount": "2000$",
"cars":[
{
"brand":"abc",
"model":"awr",
"status":"in-process"
},
{
"brand":"abc",
"model":"awr",
"status":"in-process"
},
{
"brand":"abc",
"model":"awr",
"status":"in-process"
},
{
"brand":"abc",
"model":"awr",
"status":"in-process"
},
......
]

I have cars as nested type which is having more than 50 models and i have to fetch the 10 first on the basis of car status.
'''''''

You can not get only part of nested array.

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