-
Notifications
You must be signed in to change notification settings - Fork 736
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
Added updateByQuery endpoint #1499
Conversation
mmoreram
commented
May 25, 2018
•
edited
Loading
edited
- Added Changelog entry as well under Added block
Solves #1103 |
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.
Changes LGTM. Left a few minor comments to the code docs.
Thanks a lot for using the elasticsearch-php functions to create this endpoint.
test/Elastica/IndexTest.php
Outdated
@@ -290,6 +291,76 @@ public function testDeleteByQueryWithQueryAndOptions() | |||
$this->assertEquals(0, $response->count()); | |||
} | |||
|
|||
/** | |||
* @group functional | |||
* @group mmoreram |
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.
What does the second group here mean and what is it for?
test/Elastica/IndexTest.php
Outdated
$response = $index->search('nicolas'); | ||
$this->assertEquals(1, $response->count()); | ||
|
||
// Delete first document |
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.
This only renames it and does not delete it?
test/Elastica/IndexTest.php
Outdated
|
||
$index->refresh(); | ||
|
||
// Makes sure, document is deleted |
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.
See comment above, it makes sure document is renamed.
test/Elastica/IndexTest.php
Outdated
$response = $index->search('nicolas'); | ||
$this->assertEquals(1, $response->count()); | ||
|
||
// Delete first document |
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.
Updates all docs?
test/Elastica/IndexTest.php
Outdated
|
||
$index->refresh(); | ||
|
||
// Makes sure, document is deleted |
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.
See above
Fixed all docs. I'm sorry, my mistake I didn't check properly tests :) |
@mmoreram Thanks a lot for the contribution. |
@ruflin thanks to you, for this library :=) When do you expect you will release next stable version? |
Here you go: http://elastica.io/2018/05/29/release-6-dot-0-2/ |
@ruflin WEEEE That deserves a beer if you come to Barcelona ! :D Thanks so much! |