-
Notifications
You must be signed in to change notification settings - Fork 18
create proxy route to elasticsearch #170
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
Conversation
api/handlers/searchhandler.py
Outdated
body = self.request.json_body if self.request.body else { | ||
'query': { | ||
'match_all': {} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Am I correct in thinking this... defaults to returning all documents if no query was passed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes that's correct
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That does not seem like a good idea.
Looks like it accomplishes what's desired from the title. From earlier discussion I expected this to be a straight reverse-proxy, but this approach (using an ES client) makes sense. Did not test against our infra. @ryansanford Looks like there's a new key in |
requirements.txt
Outdated
rfc3987==1.3.4 | ||
webapp2==2.5.2 | ||
WebOb==1.5.1 | ||
elasticsearch>=1.0.0,<2.0.0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please pin this to an exact version like all other requirements.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was following this guidelines: http://elasticsearch-py.readthedocs.org/en/master/
👍 |
create proxy route to elasticsearch
closes #168