I currently have an array of objects in my Elasticsearch. Currently I only have one filter on the name and I load all objects from the Elasticsearch and process them later in the application. Now I have too much data in the Elasticsearch and I need a page numbering to improve the performance. How can I do a page numbering based on an array?
[
{
"_id": "10",
"_source": {
"names": [{ "id": 10, "title": "Hans" }],
"tags": [
{
"id": 5,
"name": "Foo"
},
{
"id": 8,
"name": "Bar"
}
]
}
},
{
"_id": "11",
"_source": {
"names": [{ "id": 12, "title": "Franz" }],
"tags": [
{
"id": 6,
"name": "Foo Bar"
}
]
}
},
{
"_id": "4",
"_source": {
"names": [{ "id": 10, "title": "Hans" }],
"tags": [
{
"id": 5,
"name": "Example"
},
{
"id": 8,
"name": "Test"
}
]
}
}
]