"search_after" not working

I am using a Java client to search. I see below request generated with appropriate "search_after" values and sort columns (i also see result data sorted based on these columns).

Response does NOT start with "Greg" as mentioned in "search_after"array. ES responds complete list regardless of "search_after"

Am i missing something obvious? Any specific attribute that I need to check in mapping?

Thank you

{
"from": 0,
"size": 100,
"timeout": "60s",
"query": {
"bool": {
"must": [
{
"bool": {
"must": [
{
"bool": {
"must": [
......
},
"sort": [
{
"chr_associate.given_name": {
"order": "asc"
}
},
{
"chr_associate.aoid": {
"order": "asc"
}
}
],
"search_after": [
"Greg",
"G3K6X14228P82HB5"
]
}

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