Data is imported into ES in batches, and it can be queried after four minutes

I'm currently maintaining a project for my company. The project uses a python script to import data into ES every minute. The response of importing data is returned successfully, but the data that is four minutes ago can only be queried through kibana query. Results are only available four minutes after inserting data. The parameter refresh_interval of the index is set to 10s.
I'm very confused about this problem, I hope to get help from everyone.

Welcome to our community! :smiley:

Can you share the code that is doing the indexing request?

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