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

New methods: get and refresh #1

Open
wants to merge 13 commits into
base: master
Choose a base branch
from
Open

New methods: get and refresh #1

wants to merge 13 commits into from

Conversation

aflag
Copy link

@aflag aflag commented Aug 4, 2014

I've added elasticsearch's refresh and get methods. I think refresh may take the place of timeout. I kept timeout working how it was for backwards compatibility, but if timeout is set to None, then refresh is used.

I have also added support for creating aliases on MultipleIndexesQueryTestCase.

aflag and others added 13 commits August 2, 2014 18:25
text query has been deprecated in elasticsearch 0.90 and removed in
elasticsearch 1.0. match query should be used instead.

elastic/elasticsearch#4033
MultipleIndexQueryTestCase's delete_index always used self.index instead
of relying on the index name passed by parameter.
This way we only wait the necessary amount of time for documents to be
loaded into elasticsearch.

I kept timeout = 5 as a default in order to keep backwards
compatibility. On a new major version, where that's not a concern, I
think we should drop timeout entirely.
While creating tests for create_index I found a bug on
MultipleIndexesQueryTestCase. I'm fixing it in this commit.
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.

1 participant