-
Notifications
You must be signed in to change notification settings - Fork 732
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
Fixes #1906 - setOption('filter_path', 'responses.hits.hits._source'); #1907
base: 8.x
Are you sure you want to change the base?
Conversation
$search->setOption('filter_path', 'responses.hits.hits._source');
Thanks for the contribution. Could you add a changelog entry and a test? Also check the style of the code as CI complains. |
* | ||
* @return $this | ||
*/ | ||
public function setOption($key, $value) |
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.
public function setOption($key, $value) | |
public function setOption(string $key, $value): self |
Argument $key
can probably be type-hinted
* | ||
* @return bool | ||
*/ | ||
public function hasOption($key) |
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.
public function hasOption($key) | |
public function hasOption(string $key): bool |
* | ||
* @return $this | ||
*/ | ||
public function addOption($key, $value) |
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.
public function addOption($key, $value) | |
public function addOption(string $key, $value): self |
* | ||
* @return mixed | ||
*/ | ||
public function getOption($key) |
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.
public function getOption($key) | |
public function getOption(string $key) |
/** | ||
* @return array | ||
*/ | ||
public function getOptions() |
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.
public function getOptions() | |
public function getOptions(): array |
* | ||
* @return bool | ||
*/ | ||
protected function _validateOption($key) |
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.
protected function _validateOption($key) | |
protected function _validateOption(string $key): bool |
/** | ||
* @return $this | ||
*/ | ||
public function clearOptions() |
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.
public function clearOptions() | |
public function clearOptions(): self |
* | ||
* @return $this | ||
*/ | ||
public function setOptions(array $options) |
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.
public function setOptions(array $options) | |
public function setOptions(array $options): self |
$search->setOption('filter_path', 'responses.hits.hits._source');
#1906