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
260818e4
Commit
260818e4
authored
Oct 31, 2014
by
Simon Mönch
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
PSR-2 fixes
parent
6123e8d2
Changes
45
Hide whitespace changes
Inline
Side-by-side
Showing
45 changed files
with
117 additions
and
136 deletions
+117
-136
library/Solarium/Core/Client/Adapter/ZendHttp.php
library/Solarium/Core/Client/Adapter/ZendHttp.php
+2
-2
library/Solarium/Core/Client/Client.php
library/Solarium/Core/Client/Client.php
+21
-21
library/Solarium/Core/Client/Request.php
library/Solarium/Core/Client/Request.php
+1
-1
library/Solarium/Core/Configurable.php
library/Solarium/Core/Configurable.php
+1
-1
library/Solarium/Core/ConfigurableInterface.php
library/Solarium/Core/ConfigurableInterface.php
+1
-1
library/Solarium/Core/Plugin/Plugin.php
library/Solarium/Core/Plugin/Plugin.php
+0
-1
library/Solarium/Core/Plugin/PluginInterface.php
library/Solarium/Core/Plugin/PluginInterface.php
+0
-1
library/Solarium/Core/Query/Helper.php
library/Solarium/Core/Query/Helper.php
+5
-5
library/Solarium/Core/Query/Query.php
library/Solarium/Core/Query/Query.php
+0
-1
library/Solarium/Core/Query/QueryInterface.php
library/Solarium/Core/Query/QueryInterface.php
+0
-1
library/Solarium/Core/Query/RequestBuilder.php
library/Solarium/Core/Query/RequestBuilder.php
+0
-2
library/Solarium/Core/Query/RequestBuilderInterface.php
library/Solarium/Core/Query/RequestBuilderInterface.php
+0
-1
library/Solarium/Plugin/BufferedAdd/BufferedAdd.php
library/Solarium/Plugin/BufferedAdd/BufferedAdd.php
+1
-0
library/Solarium/Plugin/Loadbalancer/Loadbalancer.php
library/Solarium/Plugin/Loadbalancer/Loadbalancer.php
+2
-2
library/Solarium/QueryType/Analysis/RequestBuilder/RequestBuilder.php
...rium/QueryType/Analysis/RequestBuilder/RequestBuilder.php
+1
-1
library/Solarium/QueryType/Analysis/Result/Document.php
library/Solarium/QueryType/Analysis/Result/Document.php
+0
-1
library/Solarium/QueryType/Extract/Query.php
library/Solarium/QueryType/Extract/Query.php
+2
-2
library/Solarium/QueryType/MoreLikeThis/Result.php
library/Solarium/QueryType/MoreLikeThis/Result.php
+0
-1
library/Solarium/QueryType/RealtimeGet/RequestBuilder.php
library/Solarium/QueryType/RealtimeGet/RequestBuilder.php
+1
-1
library/Solarium/QueryType/RealtimeGet/Result.php
library/Solarium/QueryType/RealtimeGet/Result.php
+1
-0
library/Solarium/QueryType/Select/Query/Component/DistributedSearch.php
...um/QueryType/Select/Query/Component/DistributedSearch.php
+1
-1
library/Solarium/QueryType/Select/Query/Component/Facet/Pivot.php
...Solarium/QueryType/Select/Query/Component/Facet/Pivot.php
+1
-2
library/Solarium/QueryType/Select/Query/Component/FacetSet.php
...ry/Solarium/QueryType/Select/Query/Component/FacetSet.php
+15
-15
library/Solarium/QueryType/Select/Query/Component/Highlighting/Highlighting.php
...Type/Select/Query/Component/Highlighting/Highlighting.php
+9
-9
library/Solarium/QueryType/Select/Query/Component/Spellcheck.php
.../Solarium/QueryType/Select/Query/Component/Spellcheck.php
+4
-4
library/Solarium/QueryType/Select/Query/Component/Stats/Field.php
...Solarium/QueryType/Select/Query/Component/Stats/Field.php
+1
-1
library/Solarium/QueryType/Select/Query/Component/Stats/Stats.php
...Solarium/QueryType/Select/Query/Component/Stats/Stats.php
+1
-1
library/Solarium/QueryType/Select/Query/Query.php
library/Solarium/QueryType/Select/Query/Query.php
+3
-3
library/Solarium/QueryType/Select/ResponseParser/Component/FacetSet.php
...um/QueryType/Select/ResponseParser/Component/FacetSet.php
+13
-13
library/Solarium/QueryType/Select/ResponseParser/Component/Spellcheck.php
.../QueryType/Select/ResponseParser/Component/Spellcheck.php
+2
-2
library/Solarium/QueryType/Select/Result/Highlighting/Highlighting.php
...ium/QueryType/Select/Result/Highlighting/Highlighting.php
+0
-2
library/Solarium/QueryType/Select/Result/MoreLikeThis/MoreLikeThis.php
...ium/QueryType/Select/Result/MoreLikeThis/MoreLikeThis.php
+0
-2
library/Solarium/QueryType/Select/Result/MoreLikeThis/Result.php
.../Solarium/QueryType/Select/Result/MoreLikeThis/Result.php
+3
-3
library/Solarium/QueryType/Select/Result/Result.php
library/Solarium/QueryType/Select/Result/Result.php
+0
-1
library/Solarium/QueryType/Select/Result/Spellcheck/Result.php
...ry/Solarium/QueryType/Select/Result/Spellcheck/Result.php
+0
-3
library/Solarium/QueryType/Select/Result/Spellcheck/Suggestion.php
...olarium/QueryType/Select/Result/Spellcheck/Suggestion.php
+5
-5
library/Solarium/QueryType/Select/Result/Stats/Stats.php
library/Solarium/QueryType/Select/Result/Stats/Stats.php
+0
-2
library/Solarium/QueryType/Suggester/Query.php
library/Solarium/QueryType/Suggester/Query.php
+0
-2
library/Solarium/QueryType/Suggester/RequestBuilder.php
library/Solarium/QueryType/Suggester/RequestBuilder.php
+1
-1
library/Solarium/QueryType/Terms/Query.php
library/Solarium/QueryType/Terms/Query.php
+0
-2
library/Solarium/QueryType/Terms/RequestBuilder.php
library/Solarium/QueryType/Terms/RequestBuilder.php
+1
-1
library/Solarium/QueryType/Terms/ResponseParser.php
library/Solarium/QueryType/Terms/ResponseParser.php
+0
-1
library/Solarium/QueryType/Update/Query/Document/Document.php
...ary/Solarium/QueryType/Update/Query/Document/Document.php
+7
-4
library/Solarium/QueryType/Update/Query/Query.php
library/Solarium/QueryType/Update/Query/Query.php
+6
-5
library/Solarium/QueryType/Update/RequestBuilder.php
library/Solarium/QueryType/Update/RequestBuilder.php
+5
-5
No files found.
library/Solarium/Core/Client/Adapter/ZendHttp.php
View file @
260818e4
...
@@ -161,8 +161,8 @@ class ZendHttp extends Configurable implements AdapterInterface
...
@@ -161,8 +161,8 @@ class ZendHttp extends Configurable implements AdapterInterface
*
*
* @throws HttpException
* @throws HttpException
* @throws OutOfBoundsException
* @throws OutOfBoundsException
* @param Request $request
* @param Request
$request
* @param Endpoint $endpoint
* @param Endpoint
$endpoint
* @return Response
* @return Response
*/
*/
public
function
execute
(
$request
,
$endpoint
)
public
function
execute
(
$request
,
$endpoint
)
...
...
library/Solarium/Core/Client/Client.php
View file @
260818e4
...
@@ -750,8 +750,8 @@ class Client extends Configurable
...
@@ -750,8 +750,8 @@ class Client extends Configurable
/**
/**
* Execute a query
* Execute a query
*
*
* @param QueryInterface $query
* @param
QueryInterface $query
* @param Endpoint|string|null $endpoint
* @param
Endpoint|string|null $endpoint
* @return ResultInterface
* @return ResultInterface
*/
*/
public
function
execute
(
QueryInterface
$query
,
$endpoint
=
null
)
public
function
execute
(
QueryInterface
$query
,
$endpoint
=
null
)
...
@@ -819,8 +819,8 @@ class Client extends Configurable
...
@@ -819,8 +819,8 @@ class Client extends Configurable
* @internal This is a convenience method that forwards the query to the
* @internal This is a convenience method that forwards the query to the
* execute method, thus allowing for an easy to use and clean API.
* execute method, thus allowing for an easy to use and clean API.
*
*
* @param QueryInterface|\Solarium\QueryType\Ping\Query $query
* @param
QueryInterface|\Solarium\QueryType\Ping\Query $query
* @param Endpoint|string|null $endpoint
* @param
Endpoint|string|null $endpoint
* @return \Solarium\QueryType\Ping\Result
* @return \Solarium\QueryType\Ping\Result
*/
*/
public
function
ping
(
QueryInterface
$query
,
$endpoint
=
null
)
public
function
ping
(
QueryInterface
$query
,
$endpoint
=
null
)
...
@@ -845,8 +845,8 @@ class Client extends Configurable
...
@@ -845,8 +845,8 @@ class Client extends Configurable
* @internal This is a convenience method that forwards the query to the
* @internal This is a convenience method that forwards the query to the
* execute method, thus allowing for an easy to use and clean API.
* execute method, thus allowing for an easy to use and clean API.
*
*
* @param QueryInterface|\Solarium\QueryType\Update\Query\Query $query
* @param
QueryInterface|\Solarium\QueryType\Update\Query\Query $query
* @param Endpoint|string|null $endpoint
* @param
Endpoint|string|null $endpoint
* @return \Solarium\QueryType\Update\Result
* @return \Solarium\QueryType\Update\Result
*/
*/
public
function
update
(
QueryInterface
$query
,
$endpoint
=
null
)
public
function
update
(
QueryInterface
$query
,
$endpoint
=
null
)
...
@@ -870,8 +870,8 @@ class Client extends Configurable
...
@@ -870,8 +870,8 @@ class Client extends Configurable
* @internal This is a convenience method that forwards the query to the
* @internal This is a convenience method that forwards the query to the
* execute method, thus allowing for an easy to use and clean API.
* execute method, thus allowing for an easy to use and clean API.
*
*
* @param QueryInterface|\Solarium\QueryType\Select\Query\Query $query
* @param
QueryInterface|\Solarium\QueryType\Select\Query\Query $query
* @param Endpoint|string|null $endpoint
* @param
Endpoint|string|null $endpoint
* @return \Solarium\QueryType\Select\Result\Result
* @return \Solarium\QueryType\Select\Result\Result
*/
*/
public
function
select
(
QueryInterface
$query
,
$endpoint
=
null
)
public
function
select
(
QueryInterface
$query
,
$endpoint
=
null
)
...
@@ -895,8 +895,8 @@ class Client extends Configurable
...
@@ -895,8 +895,8 @@ class Client extends Configurable
* @internal This is a convenience method that forwards the query to the
* @internal This is a convenience method that forwards the query to the
* execute method, thus allowing for an easy to use and clean API.
* execute method, thus allowing for an easy to use and clean API.
*
*
* @param QueryInterface|\Solarium\QueryType\MoreLikeThis\Query $query
* @param
QueryInterface|\Solarium\QueryType\MoreLikeThis\Query $query
* @param Endpoint|string|null $endpoint
* @param
Endpoint|string|null $endpoint
* @return \Solarium\QueryType\MoreLikeThis\Result
* @return \Solarium\QueryType\MoreLikeThis\Result
*/
*/
public
function
moreLikeThis
(
QueryInterface
$query
,
$endpoint
=
null
)
public
function
moreLikeThis
(
QueryInterface
$query
,
$endpoint
=
null
)
...
@@ -910,8 +910,8 @@ class Client extends Configurable
...
@@ -910,8 +910,8 @@ class Client extends Configurable
* @internal This is a convenience method that forwards the query to the
* @internal This is a convenience method that forwards the query to the
* execute method, thus allowing for an easy to use and clean API.
* execute method, thus allowing for an easy to use and clean API.
*
*
* @param QueryInterface|\Solarium\QueryType\Analysis\Query\Document|\Solarium\QueryType\Analysis\Query\Field $query
* @param
QueryInterface|\Solarium\QueryType\Analysis\Query\Document|\Solarium\QueryType\Analysis\Query\Field $query
* @param
Endpoint|string|null
$endpoint
* @param
Endpoint|string|null
$endpoint
* @return \Solarium\QueryType\Analysis\Result\Document|\Solarium\QueryType\Analysis\Result\Field
* @return \Solarium\QueryType\Analysis\Result\Document|\Solarium\QueryType\Analysis\Result\Field
*/
*/
public
function
analyze
(
QueryInterface
$query
,
$endpoint
=
null
)
public
function
analyze
(
QueryInterface
$query
,
$endpoint
=
null
)
...
@@ -925,8 +925,8 @@ class Client extends Configurable
...
@@ -925,8 +925,8 @@ class Client extends Configurable
* @internal This is a convenience method that forwards the query to the
* @internal This is a convenience method that forwards the query to the
* execute method, thus allowing for an easy to use and clean API.
* execute method, thus allowing for an easy to use and clean API.
*
*
* @param QueryInterface|\Solarium\QueryType\Terms\Query $query
* @param
QueryInterface|\Solarium\QueryType\Terms\Query $query
* @param Endpoint|string|null $endpoint
* @param
Endpoint|string|null $endpoint
* @return \Solarium\QueryType\Terms\Result
* @return \Solarium\QueryType\Terms\Result
*/
*/
public
function
terms
(
QueryInterface
$query
,
$endpoint
=
null
)
public
function
terms
(
QueryInterface
$query
,
$endpoint
=
null
)
...
@@ -940,8 +940,8 @@ class Client extends Configurable
...
@@ -940,8 +940,8 @@ class Client extends Configurable
* @internal This is a convenience method that forwards the query to the
* @internal This is a convenience method that forwards the query to the
* execute method, thus allowing for an easy to use and clean API.
* execute method, thus allowing for an easy to use and clean API.
*
*
* @param QueryInterface|\Solarium\QueryType\Suggester\Query $query
* @param
QueryInterface|\Solarium\QueryType\Suggester\Query $query
* @param Endpoint|string|null $endpoint
* @param
Endpoint|string|null $endpoint
* @return \Solarium\QueryType\Suggester\Result\Result
* @return \Solarium\QueryType\Suggester\Result\Result
*/
*/
public
function
suggester
(
QueryInterface
$query
,
$endpoint
=
null
)
public
function
suggester
(
QueryInterface
$query
,
$endpoint
=
null
)
...
@@ -955,8 +955,8 @@ class Client extends Configurable
...
@@ -955,8 +955,8 @@ class Client extends Configurable
* @internal This is a convenience method that forwards the query to the
* @internal This is a convenience method that forwards the query to the
* execute method, thus allowing for an easy to use and clean API.
* execute method, thus allowing for an easy to use and clean API.
*
*
* @param QueryInterface|\Solarium\QueryType\Extract\Query $query
* @param
QueryInterface|\Solarium\QueryType\Extract\Query $query
* @param Endpoint|string|null $endpoint
* @param
Endpoint|string|null $endpoint
* @return \Solarium\QueryType\Extract\Result
* @return \Solarium\QueryType\Extract\Result
*/
*/
public
function
extract
(
QueryInterface
$query
,
$endpoint
=
null
)
public
function
extract
(
QueryInterface
$query
,
$endpoint
=
null
)
...
@@ -970,8 +970,8 @@ class Client extends Configurable
...
@@ -970,8 +970,8 @@ class Client extends Configurable
* @internal This is a convenience method that forwards the query to the
* @internal This is a convenience method that forwards the query to the
* execute method, thus allowing for an easy to use and clean API.
* execute method, thus allowing for an easy to use and clean API.
*
*
* @param QueryInterface|\Solarium\QueryType\RealtimeGet\Query $query
* @param
QueryInterface|\Solarium\QueryType\RealtimeGet\Query $query
* @param Endpoint|string|null $endpoint
* @param
Endpoint|string|null $endpoint
* @return \Solarium\QueryType\RealtimeGet\Result
* @return \Solarium\QueryType\RealtimeGet\Result
*/
*/
public
function
realtimeGet
(
QueryInterface
$query
,
$endpoint
=
null
)
public
function
realtimeGet
(
QueryInterface
$query
,
$endpoint
=
null
)
...
@@ -1118,7 +1118,7 @@ class Client extends Configurable
...
@@ -1118,7 +1118,7 @@ class Client extends Configurable
/**
/**
* Create a RealtimeGet query instance
* Create a RealtimeGet query instance
*
*
* @param mixed $options
* @param mixed
$options
* @return \Solarium\QueryType\RealtimeGet\Query
* @return \Solarium\QueryType\RealtimeGet\Query
*/
*/
public
function
createRealtimeGet
(
$options
=
null
)
public
function
createRealtimeGet
(
$options
=
null
)
...
...
library/Solarium/Core/Client/Request.php
View file @
260818e4
...
@@ -325,7 +325,7 @@ class Request extends Configurable
...
@@ -325,7 +325,7 @@ class Request extends Configurable
* Set the file to upload via "multipart/form-data" POST request
* Set the file to upload via "multipart/form-data" POST request
*
*
* @throws RuntimeException
* @throws RuntimeException
* @param string $filename Name of file to upload
* @param string
$filename Name of file to upload
* @return self
* @return self
*/
*/
public
function
setFileUpload
(
$filename
)
public
function
setFileUpload
(
$filename
)
...
...
library/Solarium/Core/Configurable.php
View file @
260818e4
...
@@ -87,7 +87,7 @@ class Configurable implements ConfigurableInterface
...
@@ -87,7 +87,7 @@ class Configurable implements ConfigurableInterface
* @throws InvalidArgumentException
* @throws InvalidArgumentException
* @param array|\Zend_Config $options
* @param array|\Zend_Config $options
* @param boolean $overwrite True for overwriting existing options, false
* @param boolean $overwrite True for overwriting existing options, false
* for merging (new values overwrite old ones if needed)
*
for merging (new values overwrite old ones if needed)
*
*
* @return void
* @return void
*/
*/
...
...
library/Solarium/Core/ConfigurableInterface.php
View file @
260818e4
...
@@ -72,7 +72,7 @@ interface ConfigurableInterface
...
@@ -72,7 +72,7 @@ interface ConfigurableInterface
* @throws InvalidArgumentException
* @throws InvalidArgumentException
* @param array|\Zend_Config $options
* @param array|\Zend_Config $options
* @param boolean $overwrite True for overwriting existing options, false
* @param boolean $overwrite True for overwriting existing options, false
* for merging (new values overwrite old ones if needed)
*
for merging (new values overwrite old ones if needed)
*
*
* @return void
* @return void
*/
*/
...
...
library/Solarium/Core/Plugin/Plugin.php
View file @
260818e4
...
@@ -40,7 +40,6 @@ namespace Solarium\Core\Plugin;
...
@@ -40,7 +40,6 @@ namespace Solarium\Core\Plugin;
use
Solarium\Core\Client\Client
;
use
Solarium\Core\Client\Client
;
use
Solarium\Core\Configurable
;
use
Solarium\Core\Configurable
;
use
Solarium\Core\Query\Query
;
/**
/**
* Base class for plugins
* Base class for plugins
...
...
library/Solarium/Core/Plugin/PluginInterface.php
View file @
260818e4
...
@@ -40,7 +40,6 @@ namespace Solarium\Core\Plugin;
...
@@ -40,7 +40,6 @@ namespace Solarium\Core\Plugin;
use
Solarium\Core\ConfigurableInterface
;
use
Solarium\Core\ConfigurableInterface
;
use
Solarium\Core\Client\Client
;
use
Solarium\Core\Client\Client
;
use
Solarium\Core\Query\Query
;
/**
/**
* Interface for plugins
* Interface for plugins
...
...
library/Solarium/Core/Query/Helper.php
View file @
260818e4
...
@@ -38,7 +38,6 @@
...
@@ -38,7 +38,6 @@
*/
*/
namespace
Solarium\Core\Query
;
namespace
Solarium\Core\Query
;
use
Solarium\Core\Query\Query
;
use
Solarium\Exception\InvalidArgumentException
;
use
Solarium\Exception\InvalidArgumentException
;
/**
/**
...
@@ -346,6 +345,7 @@ class Helper
...
@@ -346,6 +345,7 @@ class Helper
foreach
(
$params
as
$key
=>
$value
)
{
foreach
(
$params
as
$key
=>
$value
)
{
$this
->
query
->
addParam
(
$key
,
$value
);
$this
->
query
->
addParam
(
$key
,
$value
);
}
}
return
$name
.
'()'
;
return
$name
.
'()'
;
}
else
{
}
else
{
return
$name
.
'('
.
implode
(
$params
,
','
)
.
')'
;
return
$name
.
'('
.
implode
(
$params
,
','
)
.
')'
;
...
@@ -442,8 +442,8 @@ class Helper
...
@@ -442,8 +442,8 @@ class Helper
*
*
* @see http://wiki.apache.org/solr/SolrQuerySyntax#Other_built-in_useful_query_parsers
* @see http://wiki.apache.org/solr/SolrQuerySyntax#Other_built-in_useful_query_parsers
*
*
* @param string $field
* @param
string $field
* @param
float
$weight
* @param
float
$weight
* @return string
* @return string
*/
*/
public
function
qparserTerm
(
$field
,
$weight
)
public
function
qparserTerm
(
$field
,
$weight
)
...
@@ -458,8 +458,8 @@ class Helper
...
@@ -458,8 +458,8 @@ class Helper
*
*
* @see http://wiki.apache.org/solr/CommonQueryParameters#Caching_of_filters
* @see http://wiki.apache.org/solr/CommonQueryParameters#Caching_of_filters
*
*
* @param boolean $useCache
* @param
boolean $useCache
* @param float|null $cost
* @param
float|null $cost
* @return string
* @return string
*/
*/
public
function
cacheControl
(
$useCache
,
$cost
=
null
)
public
function
cacheControl
(
$useCache
,
$cost
=
null
)
...
...
library/Solarium/Core/Query/Query.php
View file @
260818e4
...
@@ -38,7 +38,6 @@
...
@@ -38,7 +38,6 @@
*/
*/
namespace
Solarium\Core\Query
;
namespace
Solarium\Core\Query
;
use
Solarium\Core\Query\Helper
;
use
Solarium\Core\Configurable
;
use
Solarium\Core\Configurable
;
/**
/**
...
...
library/Solarium/Core/Query/QueryInterface.php
View file @
260818e4
...
@@ -38,7 +38,6 @@
...
@@ -38,7 +38,6 @@
*/
*/
namespace
Solarium\Core\Query
;
namespace
Solarium\Core\Query
;
use
Solarium\Core\Query\Helper
;
use
Solarium\Core\ConfigurableInterface
;
use
Solarium\Core\ConfigurableInterface
;
/**
/**
...
...
library/Solarium/Core/Query/RequestBuilder.php
View file @
260818e4
...
@@ -38,9 +38,7 @@
...
@@ -38,9 +38,7 @@
*/
*/
namespace
Solarium\Core\Query
;
namespace
Solarium\Core\Query
;
use
Solarium\Core\Query\Query
;
use
Solarium\Core\Client\Request
;
use
Solarium\Core\Client\Request
;
use
Solarium\Core\Query\QueryInterface
;
/**
/**
* Class for building Solarium client requests
* Class for building Solarium client requests
...
...
library/Solarium/Core/Query/RequestBuilderInterface.php
View file @
260818e4
...
@@ -38,7 +38,6 @@
...
@@ -38,7 +38,6 @@
*/
*/
namespace
Solarium\Core\Query
;
namespace
Solarium\Core\Query
;
use
Solarium\Core\Query\QueryInterface
;
use
Solarium\Core\Client\Request
;
use
Solarium\Core\Client\Request
;
/**
/**
...
...
library/Solarium/Plugin/BufferedAdd/BufferedAdd.php
View file @
260818e4
...
@@ -111,6 +111,7 @@ class BufferedAdd extends Plugin
...
@@ -111,6 +111,7 @@ class BufferedAdd extends Plugin
public
function
setEndpoint
(
$endpoint
)
public
function
setEndpoint
(
$endpoint
)
{
{
$this
->
endpoint
=
$endpoint
;
$this
->
endpoint
=
$endpoint
;
return
$this
;
return
$this
;
}
}
...
...
library/Solarium/Plugin/Loadbalancer/Loadbalancer.php
View file @
260818e4
...
@@ -485,8 +485,8 @@ class Loadbalancer extends Plugin
...
@@ -485,8 +485,8 @@ class Loadbalancer extends Plugin
* Execute a request using the adapter
* Execute a request using the adapter
*
*
* @throws RuntimeException
* @throws RuntimeException
* @param Request $request
* @param Request
$request
* @return Response $response
* @return Response
$response
*/
*/
protected
function
getLoadbalancedResponse
(
$request
)
protected
function
getLoadbalancedResponse
(
$request
)
{
{
...
...
library/Solarium/QueryType/Analysis/RequestBuilder/RequestBuilder.php
View file @
260818e4
...
@@ -52,7 +52,7 @@ class RequestBuilder extends BaseRequestBuilder
...
@@ -52,7 +52,7 @@ class RequestBuilder extends BaseRequestBuilder
/**
/**
* Build request for an analysis query
* Build request for an analysis query
*
*
* @param QueryInterface|Query
$query
* @param QueryInterface|Query $query
* @return Request
* @return Request
*/
*/
public
function
build
(
QueryInterface
$query
)
public
function
build
(
QueryInterface
$query
)
...
...
library/Solarium/QueryType/Analysis/Result/Document.php
View file @
260818e4
...
@@ -39,7 +39,6 @@
...
@@ -39,7 +39,6 @@
namespace
Solarium\QueryType\Analysis\Result
;
namespace
Solarium\QueryType\Analysis\Result
;
use
Solarium\Core\Query\Result\QueryType
as
BaseResult
;
use
Solarium\Core\Query\Result\QueryType
as
BaseResult
;
use
Solarium\QueryType\Analysis\Result\ResultList
;
/**
/**
* Analysis document query result
* Analysis document query result
...
...
library/Solarium/QueryType/Extract/Query.php
View file @
260818e4
...
@@ -393,8 +393,8 @@ class Query extends BaseQuery
...
@@ -393,8 +393,8 @@ class Query extends BaseQuery
* You can optionally directly supply the fields and boosts
* You can optionally directly supply the fields and boosts
* to get a ready-made document instance for direct use in an add command
* to get a ready-made document instance for direct use in an add command
*
*
* @param array $fields
* @param array
$fields
* @param array $boosts
* @param array
$boosts
* @return DocumentInterface
* @return DocumentInterface
*/
*/
public
function
createDocument
(
$fields
=
array
(),
$boosts
=
array
())
public
function
createDocument
(
$fields
=
array
(),
$boosts
=
array
())
...
...
library/Solarium/QueryType/MoreLikeThis/Result.php
View file @
260818e4
...
@@ -42,7 +42,6 @@ namespace Solarium\QueryType\MoreLikeThis;
...
@@ -42,7 +42,6 @@ namespace Solarium\QueryType\MoreLikeThis;
use
Solarium\QueryType\Select\Result\Document
as
ReadOnlyDocument
;
use
Solarium\QueryType\Select\Result\Document
as
ReadOnlyDocument
;
use
Solarium\QueryType\Select\Result\Result
as
SelectResult
;
use
Solarium\QueryType\Select\Result\Result
as
SelectResult
;
use
Solarium\Exception\UnexpectedValueException
;
use
Solarium\Exception\UnexpectedValueException
;
use
Solarium\QueryType\MoreLikeThis\Query
;
/**
/**
* MoreLikeThis query result
* MoreLikeThis query result
...
...
library/Solarium/QueryType/RealtimeGet/RequestBuilder.php
View file @
260818e4
...
@@ -50,7 +50,7 @@ class RequestBuilder extends BaseRequestBuilder
...
@@ -50,7 +50,7 @@ class RequestBuilder extends BaseRequestBuilder
/**
/**
* Build request for a ping query
* Build request for a ping query
*
*
* @param QueryInterface|Query
$query
* @param QueryInterface|Query $query
* @return Request
* @return Request
*/
*/
public
function
build
(
QueryInterface
$query
)
public
function
build
(
QueryInterface
$query
)
...
...
library/Solarium/QueryType/RealtimeGet/Result.php
View file @
260818e4
...
@@ -56,6 +56,7 @@ class Result extends BaseResult implements \IteratorAggregate, \Countable
...
@@ -56,6 +56,7 @@ class Result extends BaseResult implements \IteratorAggregate, \Countable
public
function
getDocument
()
public
function
getDocument
()
{
{
$docs
=
$this
->
getDocuments
();
$docs
=
$this
->
getDocuments
();
return
reset
(
$docs
);
return
reset
(
$docs
);
}
}
}
}
library/Solarium/QueryType/Select/Query/Component/DistributedSearch.php
View file @
260818e4
...
@@ -249,7 +249,7 @@ class DistributedSearch extends Component
...
@@ -249,7 +249,7 @@ class DistributedSearch extends Component
/**
/**
* Add a collection
* Add a collection
*
*
* @param string $key unique string
* @param string $key
unique string
* @param string $collection The syntax is host:port/base_url
* @param string $collection The syntax is host:port/base_url
* @return self Provides fluent interface
* @return self Provides fluent interface
* @link http://wiki.apache.org/solr/SolrCloud/
* @link http://wiki.apache.org/solr/SolrCloud/
...
...
library/Solarium/QueryType/Select/Query/Component/Facet/Pivot.php
View file @
260818e4
...
@@ -97,7 +97,6 @@ class Pivot extends Facet
...
@@ -97,7 +97,6 @@ class Pivot extends Facet
return
$this
->
getOption
(
'mincount'
);
return
$this
->
getOption
(
'mincount'
);
}
}
/**
/**
* Specify a field to return in the resultset
* Specify a field to return in the resultset
*
*
...
@@ -116,7 +115,7 @@ class Pivot extends Facet
...
@@ -116,7 +115,7 @@ class Pivot extends Facet
* Specify multiple fields to return in the resultset
* Specify multiple fields to return in the resultset
*
*
* @param string|array $fields can be an array or string with comma
* @param string|array $fields can be an array or string with comma
* separated fieldnames
*
separated fieldnames
*
*
* @return self Provides fluent interface
* @return self Provides fluent interface
*/
*/
...
...
library/Solarium/QueryType/Select/Query/Component/FacetSet.php
View file @
260818e4
...
@@ -159,8 +159,8 @@ class FacetSet extends Component
...
@@ -159,8 +159,8 @@ class FacetSet extends Component
* Allow extraction of facets without having to define
* Allow extraction of facets without having to define
* them on the query
* them on the query
*
*
* @param boolean $extract
* @param
boolean $extract
* @return self Provides fluent interface
* @return self
Provides fluent interface
*/
*/
public
function
setExtractFromResponse
(
$extract
)
public
function
setExtractFromResponse
(
$extract
)
{
{
...
@@ -437,9 +437,9 @@ class FacetSet extends Component
...
@@ -437,9 +437,9 @@ class FacetSet extends Component
* after setting the key, by using the addFacet method.
* after setting the key, by using the addFacet method.
*
*
* @throws OutOfBoundsException
* @throws OutOfBoundsException
* @param string $type
* @param string
$type
* @param array|object|null $options
* @param array|object|null
$options
* @param boolean $add
* @param boolean
$add
* @return \Solarium\QueryType\Select\Query\Component\Facet\Facet
* @return \Solarium\QueryType\Select\Query\Component\Facet\Facet
*/
*/
public
function
createFacet
(
$type
,
$options
=
null
,
$add
=
true
)
public
function
createFacet
(
$type
,
$options
=
null
,
$add
=
true
)
...
@@ -470,8 +470,8 @@ class FacetSet extends Component
...
@@ -470,8 +470,8 @@ class FacetSet extends Component
/**
/**
* Get a facet field instance
* Get a facet field instance
*
*
* @param mixed $options
* @param mixed
$options
* @param bool $add
* @param bool
$add
* @return \Solarium\QueryType\Select\Query\Component\Facet\Field
* @return \Solarium\QueryType\Select\Query\Component\Facet\Field
*/
*/
public
function
createFacetField
(
$options
=
null
,
$add
=
true
)
public
function
createFacetField
(
$options
=
null
,
$add
=
true
)
...
@@ -482,8 +482,8 @@ class FacetSet extends Component
...
@@ -482,8 +482,8 @@ class FacetSet extends Component
/**
/**
* Get a facet query instance
* Get a facet query instance
*
*
* @param mixed $options
* @param mixed
$options
* @param bool $add
* @param bool
$add
* @return \Solarium\QueryType\Select\Query\Component\Facet\Query
* @return \Solarium\QueryType\Select\Query\Component\Facet\Query
*/
*/
public
function
createFacetQuery
(
$options
=
null
,
$add
=
true
)
public
function
createFacetQuery
(
$options
=
null
,
$add
=
true
)
...
@@ -494,8 +494,8 @@ class FacetSet extends Component
...
@@ -494,8 +494,8 @@ class FacetSet extends Component
/**
/**
* Get a facet multiquery instance
* Get a facet multiquery instance
*
*
* @param mixed $options
* @param mixed
$options
* @param bool $add
* @param bool
$add
* @return \Solarium\QueryType\Select\Query\Component\Facet\MultiQuery
* @return \Solarium\QueryType\Select\Query\Component\Facet\MultiQuery
*/
*/
public
function
createFacetMultiQuery
(
$options
=
null
,
$add
=
true
)
public
function
createFacetMultiQuery
(
$options
=
null
,
$add
=
true
)
...
@@ -506,8 +506,8 @@ class FacetSet extends Component
...
@@ -506,8 +506,8 @@ class FacetSet extends Component
/**
/**
* Get a facet range instance
* Get a facet range instance
*
*
* @param mixed $options
* @param mixed
$options
* @param bool $add
* @param bool
$add
* @return \Solarium\QueryType\Select\Query\Component\Facet\Range
* @return \Solarium\QueryType\Select\Query\Component\Facet\Range
*/
*/
public
function
createFacetRange
(
$options
=
null
,
$add
=
true
)
public
function
createFacetRange
(
$options
=
null
,
$add
=
true
)
...
@@ -518,8 +518,8 @@ class FacetSet extends Component
...
@@ -518,8 +518,8 @@ class FacetSet extends Component
/**
/**
* Get a facet pivot instance
* Get a facet pivot instance
*
*
* @param mixed $options
* @param mixed
$options
* @param bool $add
* @param bool
$add
* @return \Solarium\QueryType\Select\Query\Component\Facet\Pivot
* @return \Solarium\QueryType\Select\Query\Component\Facet\Pivot
*/
*/
public
function
createFacetPivot
(
$options
=
null
,
$add
=
true
)
public
function
createFacetPivot
(
$options
=
null
,
$add
=
true
)
...
...
library/Solarium/QueryType/Select/Query/Component/Highlighting/Highlighting.php
View file @
260818e4
...
@@ -188,7 +188,7 @@ class Highlighting extends Component
...
@@ -188,7 +188,7 @@ class Highlighting extends Component
* Add multiple fields for highlighting
* Add multiple fields for highlighting
*
*
* @param string|array $fields can be an array of object instances or a string with comma
* @param string|array $fields can be an array of object instances or a string with comma
* separated fieldnames
*
separated fieldnames
*
*
* @return self Provides fluent interface
* @return self Provides fluent interface
*/
*/
...
@@ -821,8 +821,8 @@ class Highlighting extends Component
...
@@ -821,8 +821,8 @@ class Highlighting extends Component
/**
/**
* Set boundaryscannerchars option
* Set boundaryscannerchars option
*
*
* @param string
$chars
* @param string $chars
* @return self Provides fluent interface
* @return self
Provides fluent interface
*/
*/
public
function
setBoundaryScannerChars
(
$chars
)
public
function
setBoundaryScannerChars
(
$chars
)
{
{
...
@@ -842,8 +842,8 @@ class Highlighting extends Component
...
@@ -842,8 +842,8 @@ class Highlighting extends Component
/**
/**
* Set boundaryscannertype option
* Set boundaryscannertype option
*
*
* @param string
$type
* @param string $type
* @return self Provides fluent interface
* @return self
Provides fluent interface
*/
*/
public
function
setBoundaryScannerType
(
$type
)
public
function
setBoundaryScannerType
(
$type
)
{
{
...
@@ -863,8 +863,8 @@ class Highlighting extends Component
...
@@ -863,8 +863,8 @@ class Highlighting extends Component
/**
/**
* Set boundaryscannerlanguage option
* Set boundaryscannerlanguage option
*
*
* @param string
$language
* @param string $language
* @return self Provides fluent interface
* @return self
Provides fluent interface
*/
*/
public
function
setBoundaryScannerLanguage
(
$language
)
public
function
setBoundaryScannerLanguage
(
$language
)
{
{
...
@@ -884,8 +884,8 @@ class Highlighting extends Component
...
@@ -884,8 +884,8 @@ class Highlighting extends Component
/**
/**
* Set boundaryscannercountry option
* Set boundaryscannercountry option
*
*
* @param string
$country
* @param string $country
* @return self Provides fluent interface
* @return self
Provides fluent interface
*/
*/
public
function
setBoundaryScannerCountry
(
$country
)
public
function
setBoundaryScannerCountry
(
$country
)
{
{
...
...
library/Solarium/QueryType/Select/Query/Component/Spellcheck.php
View file @
260818e4
...
@@ -373,16 +373,16 @@ class Spellcheck extends Component
...
@@ -373,16 +373,16 @@ class Spellcheck extends Component
return
$this
->
getOption
(
'accuracy'
);
return
$this
->
getOption
(
'accuracy'
);
}
}
/**
/**
* Set a collation param
* Set a collation param
* @param string $param
* @param
string $param
* @param
mixed
$value
* @param
mixed
$value
* @return self Provides fluent interface
* @return self
Provides fluent interface
*/
*/
public
function
setCollateParam
(
$param
,
$value
)
public
function
setCollateParam
(
$param
,
$value
)
{
{
$this
->
collateParams
[
$param
]
=
$value
;
$this
->
collateParams
[
$param
]
=
$value
;
return
$this
;
return
$this
;
}
}
...
...
library/Solarium/QueryType/Select/Query/Component/Stats/Field.php
View file @
260818e4
...
@@ -109,7 +109,7 @@ class Field extends Configurable
...
@@ -109,7 +109,7 @@ class Field extends Configurable
* Specify multiple facets to return in the resultset
* Specify multiple facets to return in the resultset
*
*
* @param string|array $facets can be an array or string with comma
* @param string|array $facets can be an array or string with comma
* separated facetnames
*
separated facetnames
*
*
* @return self Provides fluent interface
* @return self Provides fluent interface
*/
*/
...
...
library/Solarium/QueryType/Select/Query/Component/Stats/Stats.php
View file @
260818e4
...
@@ -288,7 +288,7 @@ class Stats extends Component
...
@@ -288,7 +288,7 @@ class Stats extends Component
* Specify multiple facets to return in the resultset
* Specify multiple facets to return in the resultset
*
*
* @param string|array $facets can be an array or string with comma
* @param string|array $facets can be an array or string with comma
* separated facetnames
*
separated facetnames
*
*
* @return self Provides fluent interface
* @return self Provides fluent interface
*/
*/
...
...
library/Solarium/QueryType/Select/Query/Query.php
View file @
260818e4
...
@@ -451,7 +451,7 @@ class Query extends BaseQuery
...
@@ -451,7 +451,7 @@ class Query extends BaseQuery
* Specify multiple fields to return in the resultset
* Specify multiple fields to return in the resultset
*
*
* @param string|array $fields can be an array or string with comma
* @param string|array $fields can be an array or string with comma
* separated fieldnames
*
separated fieldnames
*
*
* @return self Provides fluent interface
* @return self Provides fluent interface
*/
*/
...
@@ -851,8 +851,8 @@ class Query extends BaseQuery
...
@@ -851,8 +851,8 @@ class Query extends BaseQuery
*
*
* You can remove a component by passing its key or the component instance.
* You can remove a component by passing its key or the component instance.
*
*
* @param string|AbstractComponent
$component
* @param string|AbstractComponent $component
* @return self
Provides fluent interface
* @return self Provides fluent interface
*/
*/
public
function
removeComponent
(
$component
)
public
function
removeComponent
(
$component
)
{
{
...
...
library/Solarium/QueryType/Select/ResponseParser/Component/FacetSet.php
View file @
260818e4
...
@@ -144,9 +144,9 @@ class FacetSet extends ResponseParserAbstract implements ComponentParserInterfac
...
@@ -144,9 +144,9 @@ class FacetSet extends ResponseParserAbstract implements ComponentParserInterfac
/**
/**
* Add a facet result for a field facet
* Add a facet result for a field facet
*
*
* @param Query $query
* @param Query
$query
* @param QueryFacetField $facet
* @param QueryFacetField
$facet
* @param array $data
* @param array
$data
* @return ResultFacetField|null
* @return ResultFacetField|null
*/
*/
protected
function
facetField
(
$query
,
$facet
,
$data
)
protected
function
facetField
(
$query
,
$facet
,
$data
)
...
@@ -168,8 +168,8 @@ class FacetSet extends ResponseParserAbstract implements ComponentParserInterfac
...
@@ -168,8 +168,8 @@ class FacetSet extends ResponseParserAbstract implements ComponentParserInterfac
/**
/**
* Add a facet result for a facet query
* Add a facet result for a facet query
*
*
* @param QueryFacetQuery $facet
* @param QueryFacetQuery
$facet
* @param array $data
* @param array
$data
* @return ResultFacetQuery|null
* @return ResultFacetQuery|null
*/
*/
protected
function
facetQuery
(
$facet
,
$data
)
protected
function
facetQuery
(
$facet
,
$data
)
...
@@ -185,8 +185,8 @@ class FacetSet extends ResponseParserAbstract implements ComponentParserInterfac
...
@@ -185,8 +185,8 @@ class FacetSet extends ResponseParserAbstract implements ComponentParserInterfac
/**
/**
* Add a facet result for a multiquery facet
* Add a facet result for a multiquery facet
*
*
* @param QueryFacetMultiQuery $facet
* @param QueryFacetMultiQuery
$facet
* @param array $data
* @param array
$data
* @return ResultFacetMultiQuery|null
* @return ResultFacetMultiQuery|null
*/
*/
protected
function
facetMultiQuery
(
$facet
,
$data
)
protected
function
facetMultiQuery
(
$facet
,
$data
)
...
@@ -210,9 +210,9 @@ class FacetSet extends ResponseParserAbstract implements ComponentParserInterfac
...
@@ -210,9 +210,9 @@ class FacetSet extends ResponseParserAbstract implements ComponentParserInterfac
/**
/**
* Add a facet result for a range facet
* Add a facet result for a range facet
*
*
* @param Query $query
* @param Query
$query
* @param QueryFacetRange $facet
* @param QueryFacetRange
$facet
* @param array $data
* @param array
$data
* @return ResultFacetRange|null
* @return ResultFacetRange|null
*/
*/
protected
function
facetRange
(
$query
,
$facet
,
$data
)
protected
function
facetRange
(
$query
,
$facet
,
$data
)
...
@@ -240,9 +240,9 @@ class FacetSet extends ResponseParserAbstract implements ComponentParserInterfac
...
@@ -240,9 +240,9 @@ class FacetSet extends ResponseParserAbstract implements ComponentParserInterfac
/**
/**
* Add a facet result for a range facet
* Add a facet result for a range facet
*
*
* @param Query $query
* @param Query
$query
* @param QueryFacetPivot $facet
* @param QueryFacetPivot
$facet
* @param array $data
* @param array
$data
* @return ResultFacetPivot|null
* @return ResultFacetPivot|null
*/
*/
protected
function
facetPivot
(
$query
,
$facet
,
$data
)
protected
function
facetPivot
(
$query
,
$facet
,
$data
)
...
...
library/Solarium/QueryType/Select/ResponseParser/Component/Spellcheck.php
View file @
260818e4
...
@@ -99,8 +99,8 @@ class Spellcheck extends ResponseParserAbstract implements ComponentParserInterf
...
@@ -99,8 +99,8 @@ class Spellcheck extends ResponseParserAbstract implements ComponentParserInterf
/**
/**
* Parse collation data into a result object
* Parse collation data into a result object
*
*
* @param Query $queryObject
* @param Query
$queryObject
* @param array $values
* @param array
$values
* @return Collation[]
* @return Collation[]
*/
*/
protected
function
parseCollation
(
$queryObject
,
$values
)
protected
function
parseCollation
(
$queryObject
,
$values
)
...
...
library/Solarium/QueryType/Select/Result/Highlighting/Highlighting.php
View file @
260818e4
...
@@ -38,8 +38,6 @@
...
@@ -38,8 +38,6 @@
*/
*/
namespace
Solarium\QueryType\Select\Result\Highlighting
;
namespace
Solarium\QueryType\Select\Result\Highlighting
;
use
Solarium\QueryType\Select\Result\Highlighting\Result
;
/**
/**
* Select component highlighting result
* Select component highlighting result
*/
*/
...
...
library/Solarium/QueryType/Select/Result/MoreLikeThis/MoreLikeThis.php
View file @
260818e4
...
@@ -38,8 +38,6 @@
...
@@ -38,8 +38,6 @@
*/
*/
namespace
Solarium\QueryType\Select\Result\MoreLikeThis
;
namespace
Solarium\QueryType\Select\Result\MoreLikeThis
;
use
Solarium\QueryType\Select\Result\MoreLikeThis\Result
;
/**
/**
* Select component morelikethis result
* Select component morelikethis result
*/
*/
...
...
library/Solarium/QueryType/Select/Result/MoreLikeThis/Result.php
View file @
260818e4
...
@@ -71,9 +71,9 @@ class Result implements \IteratorAggregate, \Countable
...
@@ -71,9 +71,9 @@ class Result implements \IteratorAggregate, \Countable
/**
/**
* Constructor
* Constructor
*
*
* @param
int $numFound
* @param int $numFound
* @param
float|null $maxScore
* @param float|null $maxScore
* @param
array $documents
* @param array $documents
*/
*/
public
function
__construct
(
$numFound
,
$maxScore
,
$documents
)
public
function
__construct
(
$numFound
,
$maxScore
,
$documents
)
{
{
...
...
library/Solarium/QueryType/Select/Result/Result.php
View file @
260818e4
...
@@ -40,7 +40,6 @@ namespace Solarium\QueryType\Select\Result;
...
@@ -40,7 +40,6 @@ namespace Solarium\QueryType\Select\Result;
use
Solarium\QueryType\Select\Query\Query
as
SelectQuery
;
use
Solarium\QueryType\Select\Query\Query
as
SelectQuery
;
use
Solarium\Core\Query\Result\QueryType
as
BaseResult
;
use
Solarium\Core\Query\Result\QueryType
as
BaseResult
;
use
Solarium\QueryType\Select\Result\DocumentInterface
;
/**
/**
* Select query result
* Select query result
...
...
library/Solarium/QueryType/Select/Result/Spellcheck/Result.php
View file @
260818e4
...
@@ -38,9 +38,6 @@
...
@@ -38,9 +38,6 @@
*/
*/
namespace
Solarium\QueryType\Select\Result\Spellcheck
;
namespace
Solarium\QueryType\Select\Result\Spellcheck
;
use
Solarium\QueryType\Select\Result\Spellcheck\Collation
;
use
Solarium\QueryType\Select\Result\Spellcheck\Suggestion
;
/**
/**
* Select component spellcheck result
* Select component spellcheck result
*/
*/
...
...
library/Solarium/QueryType/Select/Result/Spellcheck/Suggestion.php
View file @
260818e4
...
@@ -46,11 +46,11 @@ class Suggestion
...
@@ -46,11 +46,11 @@ class Suggestion
/**
/**
* Constructor
* Constructor
*
*
* @param int
$numFound
* @param int $numFound
* @param int
$startOffset
* @param int $startOffset
* @param int
$endOffset
* @param int $endOffset
* @param int
$originalFrequency
* @param int $originalFrequency
* @param array
$words
* @param array $words
*/
*/
public
function
__construct
(
$numFound
,
$startOffset
,
$endOffset
,
$originalFrequency
,
$words
)
public
function
__construct
(
$numFound
,
$startOffset
,
$endOffset
,
$originalFrequency
,
$words
)
{
{
...
...
library/Solarium/QueryType/Select/Result/Stats/Stats.php
View file @
260818e4
...
@@ -38,8 +38,6 @@
...
@@ -38,8 +38,6 @@
*/
*/
namespace
Solarium\QueryType\Select\Result\Stats
;
namespace
Solarium\QueryType\Select\Result\Stats
;
use
Solarium\QueryType\Select\Result\Stats\Result
;
/**
/**
* Select component stats result
* Select component stats result
*/
*/
...
...
library/Solarium/QueryType/Suggester/Query.php
View file @
260818e4
...
@@ -40,8 +40,6 @@ namespace Solarium\QueryType\Suggester;
...
@@ -40,8 +40,6 @@ namespace Solarium\QueryType\Suggester;
use
Solarium\Core\Query\Query
as
BaseQuery
;
use
Solarium\Core\Query\Query
as
BaseQuery
;
use
Solarium\Core\Client\Client
;
use
Solarium\Core\Client\Client
;
use
Solarium\QueryType\Suggester\RequestBuilder
;
use
Solarium\QueryType\Suggester\ResponseParser
;
/**
/**
* Suggester Query
* Suggester Query
...
...
library/Solarium/QueryType/Suggester/RequestBuilder.php
View file @
260818e4
...
@@ -50,7 +50,7 @@ class RequestBuilder extends BaseRequestBuilder
...
@@ -50,7 +50,7 @@ class RequestBuilder extends BaseRequestBuilder
/**
/**
* Build request for a Suggester query
* Build request for a Suggester query
*
*
* @param QueryInterface|Query
$query
* @param QueryInterface|Query $query
* @return Request
* @return Request
*/
*/
public
function
build
(
QueryInterface
$query
)
public
function
build
(
QueryInterface
$query
)
...
...
library/Solarium/QueryType/Terms/Query.php
View file @
260818e4
...
@@ -40,8 +40,6 @@ namespace Solarium\QueryType\Terms;
...
@@ -40,8 +40,6 @@ namespace Solarium\QueryType\Terms;
use
Solarium\Core\Client\Client
;
use
Solarium\Core\Client\Client
;
use
Solarium\Core\Query\Query
as
BaseQuery
;
use
Solarium\Core\Query\Query
as
BaseQuery
;
use
Solarium\QueryType\Terms\RequestBuilder
;
use
Solarium\QueryType\Terms\ResponseParser
;
/**
/**
* Terms query
* Terms query
...
...
library/Solarium/QueryType/Terms/RequestBuilder.php
View file @
260818e4
...
@@ -53,7 +53,7 @@ class RequestBuilder extends BaseRequestBuilder
...
@@ -53,7 +53,7 @@ class RequestBuilder extends BaseRequestBuilder
/**
/**
* Build request for a Terms query
* Build request for a Terms query
*
*
* @param QueryInterface|Query
$query
* @param QueryInterface|Query $query
* @return Request
* @return Request
*/
*/
public
function
build
(
QueryInterface
$query
)
public
function
build
(
QueryInterface
$query
)
...
...
library/Solarium/QueryType/Terms/ResponseParser.php
View file @
260818e4
...
@@ -39,7 +39,6 @@
...
@@ -39,7 +39,6 @@
*/
*/
namespace
Solarium\QueryType\Terms
;
namespace
Solarium\QueryType\Terms
;
use
Solarium\QueryType\Terms\Query
;
use
Solarium\Core\Query\ResponseParser
as
ResponseParserAbstract
;
use
Solarium\Core\Query\ResponseParser
as
ResponseParserAbstract
;
use
Solarium\Core\Query\ResponseParserInterface
as
ResponseParserInterface
;
use
Solarium\Core\Query\ResponseParserInterface
as
ResponseParserInterface
;
...
...
library/Solarium/QueryType/Update/Query/Document/Document.php
View file @
260818e4
...
@@ -356,14 +356,15 @@ class Document extends AbstractDocument implements DocumentInterface
...
@@ -356,14 +356,15 @@ class Document extends AbstractDocument implements DocumentInterface
if
(
$value
!==
null
)
{
if
(
$value
!==
null
)
{
$this
->
addField
(
$key
,
$value
);
$this
->
addField
(
$key
,
$value
);
}
}
return
$this
;
return
$this
;
}
}
/**
/**
* Sets the modifier type for the provided field
* Sets the modifier type for the provided field
*
*
* @param
string
$key
* @param
string
$key
* @param
string
$modifier
* @param
string
$modifier
* @throws RuntimeException
* @throws RuntimeException
* @return self
* @return self
*/
*/
...
@@ -373,13 +374,14 @@ class Document extends AbstractDocument implements DocumentInterface
...
@@ -373,13 +374,14 @@ class Document extends AbstractDocument implements DocumentInterface
throw
new
RuntimeException
(
'Attempt to set an atomic update modifier that is not supported'
);
throw
new
RuntimeException
(
'Attempt to set an atomic update modifier that is not supported'
);
}
}
$this
->
modifiers
[
$key
]
=
$modifier
;
$this
->
modifiers
[
$key
]
=
$modifier
;
return
$this
;
return
$this
;
}
}
/**
/**
* Returns the appropriate modifier for atomic updates.
* Returns the appropriate modifier for atomic updates.
*
*
* @param
string
$key
* @param
string
$key
* @return null|string
* @return null|string
*/
*/
public
function
getFieldModifier
(
$key
)
public
function
getFieldModifier
(
$key
)
...
@@ -409,12 +411,13 @@ class Document extends AbstractDocument implements DocumentInterface
...
@@ -409,12 +411,13 @@ class Document extends AbstractDocument implements DocumentInterface
/**
/**
* Set version
* Set version
*
*
* @param
int
$version
* @param
int
$version
* @return self
* @return self
*/
*/
public
function
setVersion
(
$version
)
public
function
setVersion
(
$version
)
{
{
$this
->
version
=
$version
;
$this
->
version
=
$version
;
return
$this
;
return
$this
;
}
}
...
...
library/Solarium/QueryType/Update/Query/Query.php
View file @
260818e4
...
@@ -452,8 +452,8 @@ class Query extends BaseQuery
...
@@ -452,8 +452,8 @@ class Query extends BaseQuery
*
*
* This class should implement the document interface
* This class should implement the document interface
*
*
* @param string $value classname
* @param
string $value classname
* @return self Provides fluent interface
* @return self
Provides fluent interface
*/
*/
public
function
setDocumentClass
(
$value
)
public
function
setDocumentClass
(
$value
)
{
{
...
@@ -480,14 +480,15 @@ class Query extends BaseQuery
...
@@ -480,14 +480,15 @@ class Query extends BaseQuery
*
*
* @since 2.1.0
* @since 2.1.0
*
*
* @param array $fields
* @param array
$fields
* @param array $boosts
* @param array
$boosts
* @param array $modifiers
* @param array
$modifiers
* @return DocumentInterface
* @return DocumentInterface
*/
*/
public
function
createDocument
(
$fields
=
array
(),
$boosts
=
array
(),
$modifiers
=
array
())
public
function
createDocument
(
$fields
=
array
(),
$boosts
=
array
(),
$modifiers
=
array
())
{
{
$class
=
$this
->
getDocumentClass
();
$class
=
$this
->
getDocumentClass
();
return
new
$class
(
$fields
,
$boosts
,
$modifiers
);
return
new
$class
(
$fields
,
$boosts
,
$modifiers
);
}
}
}
}
library/Solarium/QueryType/Update/RequestBuilder.php
View file @
260818e4
...
@@ -108,7 +108,7 @@ class RequestBuilder extends BaseRequestBuilder
...
@@ -108,7 +108,7 @@ class RequestBuilder extends BaseRequestBuilder
* Build XML for an add command
* Build XML for an add command
*
*
* @param \Solarium\QueryType\Update\Query\Command\Add $command
* @param \Solarium\QueryType\Update\Query\Command\Add $command
* @param UpdateQuery $query
* @param UpdateQuery
$query
* @return string
* @return string
*/
*/
public
function
buildAddXml
(
$command
,
$query
=
null
)
public
function
buildAddXml
(
$command
,
$query
=
null
)
...
@@ -153,10 +153,10 @@ class RequestBuilder extends BaseRequestBuilder
...
@@ -153,10 +153,10 @@ class RequestBuilder extends BaseRequestBuilder
*
*
* Used in the add command
* Used in the add command
*
*
* @param string $name
* @param string
$name
* @param float $boost
* @param float
$boost
* @param mixed $value
* @param mixed
$value
* @param string $modifier
* @param string
$modifier
* @param UpdateQuery $query
* @param UpdateQuery $query
* @return string
* @return string
*/
*/
...
...
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