Hello, this is my first topic ever.
When I run this query it returns 10 documents,(10 is the default number)
resp = elastic_config.open_point_in_time(index='my_index', keep_alive='1m')
pit_clause = { 'id': resp['id'], 'keep_alive': '1m'}
result = elastic_config.search(
query = {
"bool" : {
"filter": [
{
"term" : {
"my_term.keyword": "my_parameter",
}},
{
"term" : {
"my_another_term.keyword": "my_another_parameter",
}},
],
},
},
pit = pit_clause,
search_after = [1716803519],
sort={
"@timestamp" : {
"order" : "asc"
}
},request_timeout= 100)
and when I run this, it returns 5000 documnts.
resp = elastic_config.open_point_in_time(index='my_index', keep_alive='1m')
pit_clause = { 'id': resp['id'], 'keep_alive': '1m'}
result = elastic_config.search(size=5000,
query = {
"bool" : {
"filter": [
{
"term" : {
"my_term.keyword": "my_parameter",
}},
{
"term" : {
"my_another_term.keyword": "my_another_parameter",
}},
],
},
},
pit = pit_clause,
search_after = [1716803519],
sort={
"@timestamp" : {
"order" : "asc"
}
},request_timeout= 100)
In fact it doesn't consider the value I'm passing to "search_after", it just returns documents as many as the size number.
what's wrong?I want to get documents after the specified time
version: 7.16.2