Skip to content

Commit 814c3dd

Browse files
committed
resolve merge conflicts
1 parent 9b023dc commit 814c3dd

File tree

2 files changed

+4
-24
lines changed

2 files changed

+4
-24
lines changed

src/Query/Compound/FunctionScoreQuery.php

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -65,16 +65,14 @@ public function getQuery()
6565
*/
6666
public function addFieldValueFactorFunction($field, $factor, $modifier = 'none', BuilderInterface $query = null, $missing = null)
6767
{
68-
$function = array_filter([
69-
'field_value_factor' => [
68+
$function = [
69+
'field_value_factor' => array_filter([
7070
'field' => $field,
7171
'factor' => $factor,
7272
'modifier' => $modifier,
7373
'missing' => $missing
74-
],
75-
], function ($item) {
76-
return $item !== null;
77-
});
74+
]),
75+
];
7876

7977
$this->applyFilter($function, $query);
8078

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)