Skip to content

Commit

Permalink
increased per-page limit for dois to 10000.
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Fenner committed Jun 2, 2019
1 parent 25f96cf commit e065523
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/controllers/concerns/paginatable.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def page_from_params(params)
end

if page[:size].present?
page[:size] = [page[:size].to_i, 1000].min
page[:size] = [page[:size].to_i, 10000].min
max_number = page[:size] > 0 ? 10000/page[:size] : 1
else
page[:size] = 25
Expand Down
2 changes: 1 addition & 1 deletion config/initializers/elasticsearch.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
config = {
host: ENV['ES_HOST'],
transport_options: {
request: { timeout: 5 }
request: { timeout: 30 }
}
}
Elasticsearch::Model.client = Elasticsearch::Client.new(host: ENV['ES_HOST'], user: "elastic", password: ENV['ELASTIC_PASSWORD']) do |f|
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ services:
- "9301:9300"
environment:
discovery.type: single-node
ES_JAVA_OPTS: -Xmx256m -Xms256m
ES_JAVA_OPTS: -Xms1g -Xmx1g
ELASTIC_PASSWORD: changeme
xpack.security.enabled: "false"
http.cors.enabled: "true"
Expand Down

0 comments on commit e065523

Please sign in to comment.