Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
E
Elasticsearch DSL
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Public
Elasticsearch DSL
Commits
39afdd38
Commit
39afdd38
authored
10 years ago
by
Mantas Jonušas
Browse files
Options
Downloads
Patches
Plain Diff
Code cleanup regarding comments
parent
7a094bef
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
Query/ConstantScoreQuery.php
+1
-1
1 addition, 1 deletion
Query/ConstantScoreQuery.php
Query/FunctionScoreQuery.php
+1
-1
1 addition, 1 deletion
Query/FunctionScoreQuery.php
Query/MultiMatchQuery.php
+10
-10
10 additions, 10 deletions
Query/MultiMatchQuery.php
with
12 additions
and
12 deletions
Query/ConstantScoreQuery.php
+
1
−
1
View file @
39afdd38
...
...
@@ -39,7 +39,7 @@ class ConstantScoreQuery implements BuilderInterface
* @param array $parameters
* @param string $dslType
*/
public
function
__construct
(
BuilderInterface
$query
,
array
$parameters
=
[],
$dslType
=
self
::
USE_
FILT
ER
)
public
function
__construct
(
BuilderInterface
$query
,
array
$parameters
=
[],
$dslType
=
self
::
USE_
QU
ER
Y
)
{
$this
->
dslType
=
$dslType
;
$this
->
query
=
$query
;
...
...
This diff is collapsed.
Click to expand it.
Query/FunctionScoreQuery.php
+
1
−
1
View file @
39afdd38
...
...
@@ -49,7 +49,7 @@ class FunctionScoreQuery implements BuilderInterface
BuilderInterface
$query
,
array
$functions
,
array
$parameters
=
[],
$dslType
=
self
::
USE_
FILT
ER
$dslType
=
self
::
USE_
QU
ER
Y
)
{
$this
->
dslType
=
$dslType
;
$this
->
query
=
$query
;
...
...
This diff is collapsed.
Click to expand it.
Query/MultiMatchQuery.php
+
10
−
10
View file @
39afdd38
...
...
@@ -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}
*/
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment