Skip to content
Snippets Groups Projects
Commit 39afdd38 authored by Mantas Jonušas's avatar Mantas Jonušas
Browse files

Code cleanup regarding comments

parent 7a094bef
No related branches found
No related tags found
No related merge requests found
......@@ -39,7 +39,7 @@ class ConstantScoreQuery implements BuilderInterface
* @param array $parameters
* @param string $dslType
*/
public function __construct(BuilderInterface $query, array $parameters = [], $dslType = self::USE_FILTER)
public function __construct(BuilderInterface $query, array $parameters = [], $dslType = self::USE_QUERY)
{
$this->dslType = $dslType;
$this->query = $query;
......
......@@ -49,7 +49,7 @@ class FunctionScoreQuery implements BuilderInterface
BuilderInterface $query,
array $functions,
array $parameters = [],
$dslType = self::USE_FILTER
$dslType = self::USE_QUERY
) {
$this->dslType = $dslType;
$this->query = $query;
......
......@@ -18,16 +18,6 @@ use ONGR\ElasticsearchBundle\DSL\BuilderInterface;
*/
class MultiMatchQuery implements BuilderInterface
{
/**
* @param array $fields
* @param string $query
*/
public function __construct(array $fields, $query)
{
$this->fields = $fields;
$this->query = $query;
}
/**
* @var array
*/
......@@ -38,6 +28,16 @@ class MultiMatchQuery implements BuilderInterface
*/
private $query;
/**
* @param array $fields
* @param string $query
*/
public function __construct(array $fields, $query)
{
$this->fields = $fields;
$this->query = $query;
}
/**
* {@inheritdoc}
*/
......
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