File tree 2 files changed +5
-4
lines changed
2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ All notable changes to this project will be documented in this file based on the
7
7
### Backward Compatibility Breaks
8
8
9
9
### Bugfixes
10
- - Function score query: corrected the ` score_method ` ` average ` to ` avg ` #975
10
+ - Function score query: corrected the ` score_method ` ` average ` to ` avg ` #975
11
11
- Set ` json_decode() ` assoc parameter to true in ` Elastica\Response ` #1005
12
12
- Add ` bigintConversion ` to keys passed to connection config in ` Elastica\Client ` #1005
13
13
- Use POST instead of PUT to send bulk requests #1010
@@ -19,6 +19,7 @@ All notable changes to this project will be documented in this file based on the
19
19
20
20
### Improvements
21
21
- More info on Elastica\Exception\PartialShardFailureException. Not just number of failed shards.
22
+ - Allow bool in TopHits::setSource function #1012
22
23
23
24
### Deprecated
24
25
- Elastica\Query\Filtered triggers E_USER_DEPRECATED error because filtered query is deprecated since ES 2.0.0-beta1. Use BoolQuery instead.
Original file line number Diff line number Diff line change @@ -66,13 +66,13 @@ public function setSort(array $sortArgs)
66
66
/**
67
67
* Allows to control how the _source field is returned with every hit.
68
68
*
69
- * @param array $fields
69
+ * @param array|bool $params Fields to be returned or false to disable source
70
70
*
71
71
* @return $this
72
72
*/
73
- public function setSource (array $ fields )
73
+ public function setSource ($ params )
74
74
{
75
- return $ this ->setParam ('_source ' , $ fields );
75
+ return $ this ->setParam ('_source ' , $ params );
76
76
}
77
77
78
78
/**
You can’t perform that action at this time.
0 commit comments