fix: update elasticsearch version
CONTRIBUTOR
May I request a review @lhoestq
2024-12-02T17:49:24Z
https://github.com/huggingface/datasets/pull/7300#issuecomment-2512277376
https://api.github.com/repos/huggingface/datasets/issues/7300
IC_kwDODunzps6Vvk-A
https://api.github.com/repos/huggingface/datasets/issues/comments/2512277376/reactions
2024-12-02T17:49:24Z
https://api.github.com/repos/huggingface/datasets/issues/comments/2512277376
https://avatars.githubusercontent.com/u/31152346?v=4
https://api.github.com/users/ruidazeng/events{/privacy}
https://api.github.com/users/ruidazeng/followers
https://api.github.com/users/ruidazeng/following{/other_user}
https://api.github.com/users/ruidazeng/gists{/gist_id}
https://github.com/ruidazeng
ruidazeng
MDQ6VXNlcjMxMTUyMzQ2
https://api.github.com/users/ruidazeng/orgs
https://api.github.com/users/ruidazeng/received_events
https://api.github.com/users/ruidazeng/repos
https://api.github.com/users/ruidazeng/starred{/owner}{/repo}
https://api.github.com/users/ruidazeng/subscriptions
User
https://api.github.com/users/ruidazeng
public
NONE
The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/datasets/pr_7300). All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.
2024-12-02T18:52:18Z
https://github.com/huggingface/datasets/pull/7300#issuecomment-2512436388
https://api.github.com/repos/huggingface/datasets/issues/7300
IC_kwDODunzps6VwLyk
https://api.github.com/repos/huggingface/datasets/issues/comments/2512436388/reactions
2024-12-02T18:52:18Z
https://api.github.com/repos/huggingface/datasets/issues/comments/2512436388
https://avatars.githubusercontent.com/u/99929124?v=4
https://api.github.com/users/HuggingFaceDocBuilderDev/events{/privacy}
https://api.github.com/users/HuggingFaceDocBuilderDev/followers
https://api.github.com/users/HuggingFaceDocBuilderDev/following{/other_user}
https://api.github.com/users/HuggingFaceDocBuilderDev/gists{/gist_id}
https://github.com/HuggingFaceDocBuilderDev
HuggingFaceDocBuilderDev
U_kgDOBfTMJA
https://api.github.com/users/HuggingFaceDocBuilderDev/orgs
https://api.github.com/users/HuggingFaceDocBuilderDev/received_events
https://api.github.com/users/HuggingFaceDocBuilderDev/repos
https://api.github.com/users/HuggingFaceDocBuilderDev/starred{/owner}{/repo}
https://api.github.com/users/HuggingFaceDocBuilderDev/subscriptions
User
https://api.github.com/users/HuggingFaceDocBuilderDev
public
This should fix the `test_py311 (windows latest, deps-latest` errors.

```
=========================== short test summary info ===========================
ERROR tests/test_search.py - AttributeError: `np.float_` was removed in the NumPy 2.0 release. Use `np.float64` instead.
ERROR tests/test_search.py - AttributeError: `np.float_` was removed in the NumPy 2.0 release. Use `np.float64` instead.
===== 2822 passed, 54 skipped, 10 warnings, 2 errors in 373.36s (0:06:13) =====
Error: Process completed with exit code 1.
```

The elasticsearch version used is `elasticsearch==7.9.1`, which is 4 years old and uses the removed `numpy.float_`.

elasticsearch fixed this in [https://github.com/elastic/elasticsearch-py/pull/2551](https://github.com/elastic/elasticsearch-py/pull/2551) and released in 8.15.0 (August 2024) and 7.17.12 (September 2024).
