Skip to content

Commit 40c9e1a

Browse files
committed
Merge branch '6.x'
2 parents 6f0e33b + 355be52 commit 40c9e1a

File tree

2 files changed

+11
-26
lines changed

2 files changed

+11
-26
lines changed

src/Query/Compound/FunctionScoreQuery.php

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -63,18 +63,21 @@ public function getQuery()
6363
* @param mixed $missing
6464
* @return $this
6565
*/
66-
public function addFieldValueFactorFunction($field, $factor, $modifier = 'none', BuilderInterface $query = null, $missing = null)
67-
{
68-
$function = array_filter([
69-
'field_value_factor' => [
66+
public function addFieldValueFactorFunction(
67+
$field,
68+
$factor,
69+
$modifier = 'none',
70+
BuilderInterface $query = null,
71+
$missing = null
72+
) {
73+
$function = [
74+
'field_value_factor' => array_filter([
7075
'field' => $field,
7176
'factor' => $factor,
7277
'modifier' => $modifier,
7378
'missing' => $missing
74-
],
75-
], function ($item) {
76-
return $item !== null;
77-
});
79+
]),
80+
];
7881

7982
$this->applyFilter($function, $query);
8083

src/Search.php

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -497,24 +497,6 @@ public function setTrackTotalHits(bool $trackTotalHits)
497497
return $this;
498498
}
499499

500-
/**
501-
* @return bool
502-
*/
503-
public function isTrackTotalHits()
504-
{
505-
return $this->trackTotalHits;
506-
}
507-
508-
/**
509-
* @param bool $trackTotalHits
510-
* @return $this
511-
*/
512-
public function setTrackTotalHits(bool $trackTotalHits)
513-
{
514-
$this->trackTotalHits = $trackTotalHits;
515-
return $this;
516-
}
517-
518500
/**
519501
* @return int
520502
*/

0 commit comments

Comments
 (0)