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

Update elasticsearch dsl 5.0.0 to 5.1.0 #1659

Merged
merged 2 commits into from
Jan 16, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions requirements/main.txt
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,9 @@ disposable-email-domains==0.0.6 \
docutils==0.13.1 \
--hash=sha256:de454f1015958450b72641165c08afe7023cd7e3944396448f2fb1b0ccba9d77 \
--hash=sha256:cb3ebcb09242804f84bdbf0b26504077a054da6772c6f4d625f335cc53ebf94d
elasticsearch-dsl==5.0.0 \
--hash=sha256:9ad78dda39e22dcfa16541a447bf7eda57c4766bfed772d86a7b3b6a9e542250 \
--hash=sha256:e686337a4094cc0e9241c616090e86b47e96462e43fe9ecc543025a2cfc9ae7d
elasticsearch-dsl==5.1.0 \
--hash=sha256:5d3800d75240e99bbb0b5b16041e88a65cc8f7ddb34b6041d515a2d76df4352b \
--hash=sha256:396393f7102a49605a91261d16218b5dd66b991a4a57cea982649cb52e6f25ac
elasticsearch==5.0.1 \
--hash=sha256:0454bb57323c10535570042c5cb2246fbdacd286ef4a537cf82e873982a36293 \
--hash=sha256:bebb51b1bc312f2a305b49a2c0900bbfcbdfd9f23e93ff1fc05f4132f2a3d1ed
Expand Down
3 changes: 2 additions & 1 deletion warehouse/search.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
import elasticsearch
import venusian

from elasticsearch_dsl import Index
from elasticsearch_dsl import Index, serializer


def doc_type(cls):
Expand Down Expand Up @@ -64,6 +64,7 @@ def includeme(config):
ca_certs=certifi.where(),
timeout=30,
retry_on_timeout=True,
serializer=serializer.serializer,
)
config.registry["elasticsearch.index"] = p.path.strip("/")
config.registry["elasticsearch.shards"] = int(qs.get("shards", ["1"])[0])
Expand Down