Faster search_batch for ElasticsearchIndex due to threading
{'login': 'mwrzalik', 'id': 1376337, 'node_id': 'MDQ6VXNlcjEzNzYzMzc=', 'avatar_url': 'https://avatars.githubusercontent.com/u/1376337?v=4', 'gravatar_id': '', 'url': 'https://api.github.com/users/mwrzalik', 'html_url': 'https://github.com/mwrzalik', 'followers_url': 'https://api.github.com/users/mwrzalik/followers', 'following_url': 'https://api.github.com/users/mwrzalik/following{/other_user}', 'gists_url': 'https://api.github.com/users/mwrzalik/gists{/gist_id}', 'starred_url': 'https://api.github.com/users/mwrzalik/starred{/owner}{/repo}', 'subscriptions_url': 'https://api.github.com/users/mwrzalik/subscriptions', 'organizations_url': 'https://api.github.com/users/mwrzalik/orgs', 'repos_url': 'https://api.github.com/users/mwrzalik/repos', 'events_url': 'https://api.github.com/users/mwrzalik/events{/privacy}', 'received_events_url': 'https://api.github.com/users/mwrzalik/received_events', 'type': 'User', 'site_admin': False}
[]
[]
Hey, 
I think it makes sense to perform search_batch threaded, so ES can perform search in parallel.
Cheers!
{'url': 'https://api.github.com/repos/huggingface/datasets/issues/2581/reactions', 'total_count': 0, '+1': 0, '-1': 0, 'laugh': 0, 'hooray': 0, 'confused': 0, 'heart': 0, 'rocket': 0, 'eyes': 0}
{'url': 'https://api.github.com/repos/huggingface/datasets/pulls/2581', 'html_url': 'https://github.com/huggingface/datasets/pull/2581', 'diff_url': 'https://github.com/huggingface/datasets/pull/2581.diff', 'patch_url': 'https://github.com/huggingface/datasets/pull/2581.patch', 'merged_at': '2021-07-12T09:52:51Z'}