Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix workaround for Elasticsearch 7.x #13828

Merged

Conversation

noellabo
Copy link
Contributor

Fix #10664

Fix it so that Elasticsearch 7.x can be used.

This is a workaround.
It uses the monkey patch suggested by @darkleaf .
toptal/chewy#673 (comment)

@Gargron Gargron merged commit 1c43461 into mastodon:master May 23, 2020
@shleeable
Copy link
Contributor

Thanks @noellabo

rtucker referenced this pull request in vulpineclub/mastodon Jun 4, 2020
Since tootsuite#13828, ElasticSearch has been failing to work
properly, throwing the following:

```
Elasticsearch::Transport::Transport::Errors::BadRequest ([400] {"error":{"root_cause":[{"type":"illegal_argument_exception","reason":"request [/tags/tag/_search] contains unrecognized parameter: [rest_total_hits_as_int]"}],"type":"illegal_argument_exception","reason":"request [/tags/tag/_search] contains unrecognized parameter: [rest_total_hits_as_int]"},"status":400})
```

This commit is based entirely on:
lo48576@1209f3e
dariusk pushed a commit to friendcamp/mastodon that referenced this pull request Oct 2, 2020
@noellabo noellabo deleted the fix-workaround-for-elasticsearch-7.x branch August 6, 2021 12:40
shouo1987 pushed a commit to CrossGate-Pawoo/mastodon that referenced this pull request Dec 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support Elasticsearch 7.0
3 participants