Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Sign in
Toggle navigation
S
solarium
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
common
solarium
Commits
b6e753c8
Commit
b6e753c8
authored
Jan 18, 2016
by
schausson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed typo in comments (filterquery instead of boostquery)
parent
27e65b3a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
library/Solarium/QueryType/Select/Query/Component/DisMax.php
library/Solarium/QueryType/Select/Query/Component/DisMax.php
+7
-7
No files found.
library/Solarium/QueryType/Select/Query/Component/DisMax.php
View file @
b6e753c8
...
...
@@ -338,12 +338,12 @@ class DisMax extends AbstractComponent
$key
=
$boostQuery
->
getKey
();
if
(
0
===
strlen
(
$key
))
{
throw
new
InvalidArgumentException
(
'A
filter
query must have a key value'
);
throw
new
InvalidArgumentException
(
'A
boost
query must have a key value'
);
}
//double add calls for the same BQ are ignored, but non-unique keys cause an exception
if
(
array_key_exists
(
$key
,
$this
->
boostQueries
)
&&
$this
->
boostQueries
[
$key
]
!==
$boostQuery
)
{
throw
new
InvalidArgumentException
(
'A
filter
query must have a unique key value within a query'
);
throw
new
InvalidArgumentException
(
'A
boost
query must have a unique key value within a query'
);
}
else
{
$this
->
boostQueries
[
$key
]
=
$boostQuery
;
}
...
...
@@ -383,9 +383,9 @@ class DisMax extends AbstractComponent
}
/**
* Remove a single
filter
query.
* Remove a single
boost
query.
*
* You can remove a
filterquery by passing its key, or by passing the filter
query instance
* You can remove a
boostquery by passing its key, or by passing the boost
query instance
*
* @param string|BoostQuery $boostQuery
*
...
...
@@ -405,7 +405,7 @@ class DisMax extends AbstractComponent
}
/**
* Remove all
filter
queries.
* Remove all
boost
queries.
*
* @return self Provides fluent interface
*/
...
...
@@ -417,9 +417,9 @@ class DisMax extends AbstractComponent
}
/**
* Set multiple
filter
queries.
* Set multiple
boost
queries.
*
* This overwrites any existing
filter
queries
* This overwrites any existing
boost
queries
*
* @param array $boostQueries
*/
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment