Skip to content
Snippets Groups Projects
Unverified Commit 814c3dd9 authored by Simonas Šerlinskas's avatar Simonas Šerlinskas
Browse files

resolve merge conflicts

parent 9b023dc9
No related branches found
No related tags found
No related merge requests found
...@@ -65,16 +65,14 @@ class FunctionScoreQuery implements BuilderInterface ...@@ -65,16 +65,14 @@ class FunctionScoreQuery implements BuilderInterface
*/ */
public function addFieldValueFactorFunction($field, $factor, $modifier = 'none', BuilderInterface $query = null, $missing = null) public function addFieldValueFactorFunction($field, $factor, $modifier = 'none', BuilderInterface $query = null, $missing = null)
{ {
$function = array_filter([ $function = [
'field_value_factor' => [ 'field_value_factor' => array_filter([
'field' => $field, 'field' => $field,
'factor' => $factor, 'factor' => $factor,
'modifier' => $modifier, 'modifier' => $modifier,
'missing' => $missing 'missing' => $missing
], ]),
], function ($item) { ];
return $item !== null;
});
$this->applyFilter($function, $query); $this->applyFilter($function, $query);
......
...@@ -497,24 +497,6 @@ class Search ...@@ -497,24 +497,6 @@ class Search
return $this; return $this;
} }
/**
* @return bool
*/
public function isTrackTotalHits()
{
return $this->trackTotalHits;
}
/**
* @param bool $trackTotalHits
* @return $this
*/
public function setTrackTotalHits(bool $trackTotalHits)
{
$this->trackTotalHits = $trackTotalHits;
return $this;
}
/** /**
* @return int * @return int
*/ */
......
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