-
Notifications
You must be signed in to change notification settings - Fork 729
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 few Span queries #1320
Added few Span queries #1320
Conversation
Wow, you not only added 1 span query but all of them. Something seems to fail with the tests. |
Hi, |
@mhernik Yeah, what a coincidence! I think we can merge our work, as my PR is still missing |
Updated DSL queries Test implementation of new classes
Hi, |
+1 on merging the work. PR to @mhernik branch sounds like a good idea to me. |
merge span query work
@alekitto is further working on span_within and span_not queries. Will ping you, when it's ready! |
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.
LGTM. Only a few minor comments.
lib/Elastica/Query/SpanFirst.php
Outdated
* | ||
* @return $this | ||
*/ | ||
protected function _addQuery($type, $args) |
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 more looks like _setQuery
as in case a second query is set, it will overwrite the previous one.
lib/Elastica/Query/SpanFirst.php
Outdated
*/ | ||
public function __construct($match = null, $end = null) | ||
{ | ||
if (null !== $match) { |
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.
lib/Elastica/Query/SpanMulti.php
Outdated
* | ||
* @return $this | ||
*/ | ||
protected function _addQuery($type, $args) |
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 prev. comment.
@mhernik Could you check the review above and squash the commits into 1? |
* Update elasticsearch-php dependency to 5.2 * Update incompatible test * Update README page * Update CHANGELOG
* Update liniting added filter path option added filter path option added changelog entry and asserts to config test
…er volume sharing solved, now snapshot tests are working (ruflin#1298)
Added a new param to Client::request and Request::_construct to allow setting the content-type of the data being sent. This defaults to "application/json" and is only overidden by Bulk and MultiSearch where it should be application/x-ndjson. Sadly I'm not sure how to test this properly. I'm not a big a big fan of adding a new param like that. Ideally we should refactor the $data param of Request::_construct to accept a array (defaults to application/json) or a new RequestBody object where the client could set the content-type alongside the the string. closes ruflin#1301
… Aggregation (ruflin#1304) Add ability to set other_bucket and other_bucket_key parameters on filters aggregation. https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-filters-aggregation.html#_literal_other_literal_bucket
added changelog entry and asserts to config test added SpanOrTest added SpanMulti span functions in dsl query updated removed unnecessary attributes reverted docker ip range Changelog update Changelog update
Updated DSL queries Test implementation of new classes add span_term, span_multi, span_first query CR
Hi @ruflin. Looks like squashing also merged other people's commits into mine PR. |
@mhernik You should be able to rebase. But if that becomes too messy, just open a new PR. |
@mhernik It looks like the PR still only contains your changes, right? So if I squash it it will be only 1 commit afterwards. But you should be able to rebase too I think if you want to have it clean in the PR. |
@mhernik I merged this as I really wanted to have it in as I plan a release the next hours / days. I hope this works for you. |
Sure. Sorry I didn't fix this squashing. Glad I could help.
…On Tue, Jul 25, 2017 at 11:03 AM, Nicolas Ruflin ***@***.***> wrote:
@mhernik <https://github.com/mhernik> I merged this as I really wanted to
have it in as I plan a release the next hours / days. I hope this works for
you.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1320 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AEk9i2G99hjxNQYL28kz0_6Ac5543CKfks5sRa9xgaJpZM4NunnX>
.
|
I think @alekitto wants to make another PR with missing queries. All that
was done in this branch was merger to mine in PR #1319
…On Tue, Jul 25, 2017 at 12:18 PM, Nicolas Ruflin ***@***.***> wrote:
@mhernik <https://github.com/mhernik> Do you know what is going to happen
with #1319 <#1319>
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1320 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AEk9i5_RA4gEoo-TW0hwN_YVOBNVwDehks5sRcDggaJpZM4NunnX>
.
|
I'll rebase my work upon master and push the work into #1319 in a day. |
I added 4 span queries: