Skip to content

Conversation

rentzso
Copy link
Contributor

@rentzso rentzso commented Feb 24, 2016

closes #168

@rentzso rentzso added this to the Bali 2 milestone Feb 24, 2016
body = self.request.json_body if self.request.body else {
'query': {
'match_all': {}
}
Copy link
Contributor

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?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes that's correct

Copy link
Member

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.

@kofalt
Copy link
Contributor

kofalt commented Feb 24, 2016

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.
Punting on broader design commentary since I don't know enough about ES.

@ryansanford Looks like there's a new key in config.py to set.

@rentzso
Copy link
Contributor Author

rentzso commented Feb 24, 2016

@kofalt this change is the first step to have ES available from the API.
A broader design discussion should happen after @lmperry @wandell input

requirements.txt Outdated
rfc3987==1.3.4
webapp2==2.5.2
WebOb==1.5.1
elasticsearch>=1.0.0,<2.0.0
Copy link
Member

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.

Copy link
Contributor Author

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/

@gsfr
Copy link
Member

gsfr commented Feb 25, 2016

👍

kofalt added a commit that referenced this pull request Feb 25, 2016
create proxy route to elasticsearch
@kofalt kofalt merged commit ad4d042 into master Feb 25, 2016
@kofalt kofalt deleted the issue#168 branch February 25, 2016 17:06
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.

Bridge to elasticsearch

3 participants