Filtering, sorting and paginate nested object list

Hello everybody,
I have an index that contains documents with the following structure.

///SHOWS INDEX
{
	"_id",
	"artists":[     -----> NESTED OBJECT LIST
		{
			"id": "1",
			"name": "text"
		},
		{
			"id": "2",
			"name": "text"
		}
	]
}

What I would like to do is get only the ID(unique) of the artist's nodes, where a simple query string matches with property "name", and then to sort by the property "name" and paginate the ID list.
It's possible?

Best regards.

1 Like

Take a look at the nested field type in combination with the inner_hits functionality.

This however does not allow you to paginate. Hope this helps as a start.

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