Skip to content
Snippets Groups Projects
Commit 076de611 authored by KnysakPatryk's avatar KnysakPatryk Committed by Simonas Šerlinskas
Browse files

ES 5 support: renamed fields to stored_fields #169 (#180)

parent 1dff57be
No related branches found
No related tags found
No related merge requests found
...@@ -68,7 +68,7 @@ class Search ...@@ -68,7 +68,7 @@ class Search
/** /**
* @var array * @var array
*/ */
private $fields; private $storedFields;
/** /**
* @var array * @var array
...@@ -556,13 +556,13 @@ class Search ...@@ -556,13 +556,13 @@ class Search
/** /**
* Allows to selectively load specific stored fields for each document represented by a search hit. * Allows to selectively load specific stored fields for each document represented by a search hit.
* *
* @param array $fields * @param array $storedFields
* *
* @return $this * @return $this
*/ */
public function setFields(array $fields) public function setStoredFields(array $storedFields)
{ {
$this->fields = $fields; $this->storedFields = $storedFields;
return $this; return $this;
} }
...@@ -572,9 +572,9 @@ class Search ...@@ -572,9 +572,9 @@ class Search
* *
* @return array * @return array
*/ */
public function getFields() public function getStoredFields()
{ {
return $this->fields; return $this->storedFields;
} }
/** /**
...@@ -789,7 +789,7 @@ class Search ...@@ -789,7 +789,7 @@ class Search
$params = [ $params = [
'from' => 'from', 'from' => 'from',
'size' => 'size', 'size' => 'size',
'fields' => 'fields', 'storedFields' => 'stored_fields',
'scriptFields' => 'script_fields', 'scriptFields' => 'script_fields',
'explain' => 'explain', 'explain' => 'explain',
'stats' => 'stats', 'stats' => 'stats',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment