I know that the preference custome string is a function that allows you to search with the same shard, but every time you search, a different shard is searched, so the search results of search after are strange.
What should I do?
search
indexname/_search?search_type=dfs_query_then_fetch&preference=hahahoho
{
"sort": [
{
"_score": {
"order": "desc"
}
},
{
"id": {
"order": "desc"
}
}
],
"search_after": [value, value]
}
response
"_shard" : "[indexname][1]",
"_node" : "U7VmOV3ARkSuzMD1TcBvog",
or
"_shard" : "[indexname][1]",
"_node" : "hVZTf0ekRim3kAMKdPjBRg"