Bump chewy from 5.2.0 to 7.2.3 (supports Elasticsearch 7.x) (#16915)
* Bump chewy from 5.2.0 to 7.2.2 * fix style (codeclimate) * fix style * fix style * Bump chewy from 7.2.2 to 7.2.3
This commit is contained in:
parent
2b6a25c609
commit
3419d3ec84
15 changed files with 136 additions and 145 deletions
|
@ -37,23 +37,3 @@ end
|
|||
# Mastodon is run with hidden services enabled, because
|
||||
# ElasticSearch is *not* supposed to be accessed through a proxy
|
||||
Faraday.ignore_env_proxy = true
|
||||
|
||||
# Elasticsearch 7.x workaround
|
||||
Elasticsearch::Transport::Client.prepend Module.new {
|
||||
def search(arguments = {})
|
||||
arguments[:rest_total_hits_as_int] = true
|
||||
super arguments
|
||||
end
|
||||
}
|
||||
|
||||
Elasticsearch::API::Indices::IndicesClient.prepend Module.new {
|
||||
def create(arguments = {})
|
||||
arguments[:include_type_name] = true
|
||||
super arguments
|
||||
end
|
||||
|
||||
def put_mapping(arguments = {})
|
||||
arguments[:include_type_name] = true
|
||||
super arguments
|
||||
end
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue