Is there a way to simulate slow queries in Elasticsearch?

Hello,

Is there a way to simulate slow queries? I want to test an application and I would like to simulate queries that would take up space in queue and will mark a thread as active for couple of minutes to see how the application handles failures and full queue.

I would like to avoid adding gigabytes of data because this would take time and space.

Thank you.

Hi,

to my knowledge there is no such query, but you could probably use a script query that either sleeps somewhere or performs some costly calculation. Haven't tried this myself though, but that might be an option.