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
5d9b6d5e
Commit
5d9b6d5e
authored
Sep 10, 2012
by
Bas de Nooijer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
php-cs-fixer changes
parent
fc819735
Changes
66
Show whitespace changes
Inline
Side-by-side
Showing
66 changed files
with
213 additions
and
226 deletions
+213
-226
library/Solarium/Core/Client/Adapter/Curl.php
library/Solarium/Core/Client/Adapter/Curl.php
+2
-2
library/Solarium/Core/Client/Adapter/Http.php
library/Solarium/Core/Client/Adapter/Http.php
+2
-3
library/Solarium/Core/Client/Adapter/PeclHttp.php
library/Solarium/Core/Client/Adapter/PeclHttp.php
+4
-4
library/Solarium/Core/Client/Adapter/ZendHttp.php
library/Solarium/Core/Client/Adapter/ZendHttp.php
+6
-7
library/Solarium/Core/Client/Client.php
library/Solarium/Core/Client/Client.php
+19
-20
library/Solarium/Core/Client/Request.php
library/Solarium/Core/Client/Request.php
+8
-5
library/Solarium/Core/Client/Response.php
library/Solarium/Core/Client/Response.php
+1
-1
library/Solarium/Core/Configurable.php
library/Solarium/Core/Configurable.php
+3
-3
library/Solarium/Core/ConfigurableInterface.php
library/Solarium/Core/ConfigurableInterface.php
+3
-3
library/Solarium/Core/Event/PostCreateQuery.php
library/Solarium/Core/Event/PostCreateQuery.php
+2
-2
library/Solarium/Core/Event/PostCreateResult.php
library/Solarium/Core/Event/PostCreateResult.php
+2
-2
library/Solarium/Core/Event/PostExecute.php
library/Solarium/Core/Event/PostExecute.php
+1
-1
library/Solarium/Core/Event/PostExecuteRequest.php
library/Solarium/Core/Event/PostExecuteRequest.php
+1
-1
library/Solarium/Core/Event/PreCreateQuery.php
library/Solarium/Core/Event/PreCreateQuery.php
+2
-2
library/Solarium/Core/Event/PreCreateRequest.php
library/Solarium/Core/Event/PreCreateRequest.php
+1
-1
library/Solarium/Core/Event/PreCreateResult.php
library/Solarium/Core/Event/PreCreateResult.php
+2
-2
library/Solarium/Core/Event/PreExecute.php
library/Solarium/Core/Event/PreExecute.php
+1
-1
library/Solarium/Core/Event/PreExecuteRequest.php
library/Solarium/Core/Event/PreExecuteRequest.php
+3
-3
library/Solarium/Core/Plugin/Plugin.php
library/Solarium/Core/Plugin/Plugin.php
+0
-3
library/Solarium/Core/Plugin/PluginInterface.php
library/Solarium/Core/Plugin/PluginInterface.php
+0
-3
library/Solarium/Core/Query/Helper.php
library/Solarium/Core/Query/Helper.php
+4
-4
library/Solarium/Core/Query/Query.php
library/Solarium/Core/Query/Query.php
+2
-2
library/Solarium/Core/Query/ResponseParser.php
library/Solarium/Core/Query/ResponseParser.php
+3
-3
library/Solarium/Core/Query/Result/Result.php
library/Solarium/Core/Query/Result/Result.php
+3
-3
library/Solarium/Plugin/BufferedAdd/BufferedAdd.php
library/Solarium/Plugin/BufferedAdd/BufferedAdd.php
+1
-2
library/Solarium/Plugin/BufferedAdd/Event/Events.php
library/Solarium/Plugin/BufferedAdd/Event/Events.php
+2
-3
library/Solarium/Plugin/BufferedAdd/Event/PreCommit.php
library/Solarium/Plugin/BufferedAdd/Event/PreCommit.php
+1
-1
library/Solarium/Plugin/BufferedAdd/Event/PreFlush.php
library/Solarium/Plugin/BufferedAdd/Event/PreFlush.php
+3
-3
library/Solarium/Plugin/CustomizeRequest/CustomizeRequest.php
...ary/Solarium/Plugin/CustomizeRequest/CustomizeRequest.php
+2
-3
library/Solarium/Plugin/Loadbalancer/Event/EndpointFailure.php
...ry/Solarium/Plugin/Loadbalancer/Event/EndpointFailure.php
+1
-2
library/Solarium/Plugin/Loadbalancer/Loadbalancer.php
library/Solarium/Plugin/Loadbalancer/Loadbalancer.php
+4
-4
library/Solarium/Plugin/Loadbalancer/WeightedRandomChoice.php
...ary/Solarium/Plugin/Loadbalancer/WeightedRandomChoice.php
+3
-3
library/Solarium/Plugin/ParallelExecution/Event/ExecuteStart.php
.../Solarium/Plugin/ParallelExecution/Event/ExecuteStart.php
+0
-1
library/Solarium/QueryType/Analysis/Query/Document.php
library/Solarium/QueryType/Analysis/Query/Document.php
+1
-1
library/Solarium/QueryType/Analysis/ResponseParser/Document.php
...y/Solarium/QueryType/Analysis/ResponseParser/Document.php
+2
-3
library/Solarium/QueryType/Analysis/ResponseParser/Field.php
library/Solarium/QueryType/Analysis/ResponseParser/Field.php
+4
-6
library/Solarium/QueryType/Extract/Query.php
library/Solarium/QueryType/Extract/Query.php
+18
-16
library/Solarium/QueryType/Extract/RequestBuilder.php
library/Solarium/QueryType/Extract/RequestBuilder.php
+1
-1
library/Solarium/QueryType/MoreLikeThis/Query.php
library/Solarium/QueryType/MoreLikeThis/Query.php
+2
-2
library/Solarium/QueryType/Select/Query/Component/Component.php
...y/Solarium/QueryType/Select/Query/Component/Component.php
+1
-0
library/Solarium/QueryType/Select/Query/Component/Facet/MultiQuery.php
...ium/QueryType/Select/Query/Component/Facet/MultiQuery.php
+2
-2
library/Solarium/QueryType/Select/Query/Component/Facet/Range.php
...Solarium/QueryType/Select/Query/Component/Facet/Range.php
+0
-2
library/Solarium/QueryType/Select/Query/Component/FacetSet.php
...ry/Solarium/QueryType/Select/Query/Component/FacetSet.php
+13
-13
library/Solarium/QueryType/Select/Query/Component/Grouping.php
...ry/Solarium/QueryType/Select/Query/Component/Grouping.php
+3
-3
library/Solarium/QueryType/Select/Query/Component/Highlighting/Highlighting.php
...Type/Select/Query/Component/Highlighting/Highlighting.php
+8
-9
library/Solarium/QueryType/Select/Query/Component/MoreLikeThis.php
...olarium/QueryType/Select/Query/Component/MoreLikeThis.php
+1
-1
library/Solarium/QueryType/Select/Query/Component/Stats/Stats.php
...Solarium/QueryType/Select/Query/Component/Stats/Stats.php
+2
-2
library/Solarium/QueryType/Select/Query/FilterQuery.php
library/Solarium/QueryType/Select/Query/FilterQuery.php
+2
-0
library/Solarium/QueryType/Select/Query/Query.php
library/Solarium/QueryType/Select/Query/Query.php
+8
-7
library/Solarium/QueryType/Select/RequestBuilder/Component/ComponentRequestBuilderInterface.php
...estBuilder/Component/ComponentRequestBuilderInterface.php
+1
-1
library/Solarium/QueryType/Select/RequestBuilder/Component/FacetSet.php
...um/QueryType/Select/RequestBuilder/Component/FacetSet.php
+2
-2
library/Solarium/QueryType/Select/ResponseParser/Component/ComponentParserInterface.php
...ect/ResponseParser/Component/ComponentParserInterface.php
+3
-3
library/Solarium/QueryType/Select/ResponseParser/Component/Debug.php
...arium/QueryType/Select/ResponseParser/Component/Debug.php
+6
-6
library/Solarium/QueryType/Select/ResponseParser/Component/FacetSet.php
...um/QueryType/Select/ResponseParser/Component/FacetSet.php
+9
-9
library/Solarium/QueryType/Select/ResponseParser/Component/Grouping.php
...um/QueryType/Select/ResponseParser/Component/Grouping.php
+3
-3
library/Solarium/QueryType/Select/ResponseParser/Component/Highlighting.php
...ueryType/Select/ResponseParser/Component/Highlighting.php
+3
-3
library/Solarium/QueryType/Select/ResponseParser/Component/MoreLikeThis.php
...ueryType/Select/ResponseParser/Component/MoreLikeThis.php
+3
-3
library/Solarium/QueryType/Select/ResponseParser/Component/Spellcheck.php
.../QueryType/Select/ResponseParser/Component/Spellcheck.php
+11
-12
library/Solarium/QueryType/Select/ResponseParser/ResponseParser.php
...larium/QueryType/Select/ResponseParser/ResponseParser.php
+1
-1
library/Solarium/QueryType/Select/Result/Document.php
library/Solarium/QueryType/Select/Result/Document.php
+2
-2
library/Solarium/QueryType/Terms/Query.php
library/Solarium/QueryType/Terms/Query.php
+2
-4
library/Solarium/QueryType/Terms/ResponseParser.php
library/Solarium/QueryType/Terms/ResponseParser.php
+1
-1
library/Solarium/QueryType/Update/Query/Command/Add.php
library/Solarium/QueryType/Update/Query/Command/Add.php
+2
-2
library/Solarium/QueryType/Update/Query/Query.php
library/Solarium/QueryType/Update/Query/Query.php
+2
-2
library/Solarium/QueryType/Update/RequestBuilder.php
library/Solarium/QueryType/Update/RequestBuilder.php
+1
-1
library/Solarium/QueryType/Update/ResponseParser.php
library/Solarium/QueryType/Update/ResponseParser.php
+1
-0
No files found.
library/Solarium/Core/Client/Adapter/Curl.php
View file @
5d9b6d5e
library/Solarium/Core/Client/Adapter/Http.php
View file @
5d9b6d5e
...
@@ -43,7 +43,6 @@ use Solarium\Core\Client\Response;
...
@@ -43,7 +43,6 @@ use Solarium\Core\Client\Response;
use
Solarium\Core\Client\Endpoint
;
use
Solarium\Core\Client\Endpoint
;
use
Solarium\Exception\HttpException
;
use
Solarium\Exception\HttpException
;
/**
/**
* Basic HTTP adapter using a stream
* Basic HTTP adapter using a stream
*/
*/
...
...
library/Solarium/Core/Client/Adapter/PeclHttp.php
View file @
5d9b6d5e
library/Solarium/Core/Client/Adapter/ZendHttp.php
View file @
5d9b6d5e
...
@@ -46,7 +46,6 @@ use Solarium\Core\Client\Request;
...
@@ -46,7 +46,6 @@ use Solarium\Core\Client\Request;
use
Solarium\Core\Client\Response
;
use
Solarium\Core\Client\Response
;
use
Solarium\Core\Client\Endpoint
;
use
Solarium\Core\Client\Endpoint
;
use
Solarium\Exception\HttpException
;
use
Solarium\Exception\HttpException
;
use
Solarium\Exception\RuntimeException
;
use
Solarium\Exception\OutOfBoundsException
;
use
Solarium\Exception\OutOfBoundsException
;
/**
/**
...
...
library/Solarium/Core/Client/Client.php
View file @
5d9b6d5e
...
@@ -59,7 +59,6 @@ use Solarium\Core\Event\PostExecute as PostExecuteEvent;
...
@@ -59,7 +59,6 @@ use Solarium\Core\Event\PostExecute as PostExecuteEvent;
use
Solarium\Core\Event\PreExecuteRequest
as
PreExecuteRequestEvent
;
use
Solarium\Core\Event\PreExecuteRequest
as
PreExecuteRequestEvent
;
use
Solarium\Core\Event\PostExecuteRequest
as
PostExecuteRequestEvent
;
use
Solarium\Core\Event\PostExecuteRequest
as
PostExecuteRequestEvent
;
/**
/**
* Main interface for interaction with Solr
* Main interface for interaction with Solr
*
*
...
...
library/Solarium/Core/Client/Request.php
View file @
5d9b6d5e
...
@@ -334,6 +334,7 @@ class Request extends Configurable
...
@@ -334,6 +334,7 @@ class Request extends Configurable
}
}
$this
->
setOption
(
'file'
,
$filename
);
$this
->
setOption
(
'file'
,
$filename
);
return
$this
;
return
$this
;
}
}
...
@@ -463,9 +464,11 @@ class Request extends Configurable
...
@@ -463,9 +464,11 @@ class Request extends Configurable
* @param string $password
* @param string $password
* @return self Provides fluent interface
* @return self Provides fluent interface
*/
*/
public
function
setAuthentication
(
$username
,
$password
)
{
public
function
setAuthentication
(
$username
,
$password
)
{
$this
->
setOption
(
'username'
,
$username
);
$this
->
setOption
(
'username'
,
$username
);
$this
->
setOption
(
'password'
,
$password
);
$this
->
setOption
(
'password'
,
$password
);
return
$this
;
return
$this
;
}
}
...
...
library/Solarium/Core/Client/Response.php
View file @
5d9b6d5e
library/Solarium/Core/Configurable.php
View file @
5d9b6d5e
library/Solarium/Core/ConfigurableInterface.php
View file @
5d9b6d5e
library/Solarium/Core/Event/PostCreateQuery.php
View file @
5d9b6d5e
library/Solarium/Core/Event/PostCreateResult.php
View file @
5d9b6d5e
library/Solarium/Core/Event/PostExecute.php
View file @
5d9b6d5e
library/Solarium/Core/Event/PostExecuteRequest.php
View file @
5d9b6d5e
library/Solarium/Core/Event/PreCreateQuery.php
View file @
5d9b6d5e
library/Solarium/Core/Event/PreCreateRequest.php
View file @
5d9b6d5e
library/Solarium/Core/Event/PreCreateResult.php
View file @
5d9b6d5e
library/Solarium/Core/Event/PreExecute.php
View file @
5d9b6d5e
library/Solarium/Core/Event/PreExecuteRequest.php
View file @
5d9b6d5e
library/Solarium/Core/Plugin/Plugin.php
View file @
5d9b6d5e
...
@@ -40,9 +40,6 @@ namespace Solarium\Core\Plugin;
...
@@ -40,9 +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
;
use
Solarium\Core\Query\Query
;
use
Solarium\Core\Client\Request
;
use
Solarium\Core\Client\Response
;
use
Solarium\Core\Query\Result\Result
;
/**
/**
* Base class for plugins
* Base class for plugins
...
...
library/Solarium/Core/Plugin/PluginInterface.php
View file @
5d9b6d5e
...
@@ -40,9 +40,6 @@ namespace Solarium\Core\Plugin;
...
@@ -40,9 +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
;
use
Solarium\Core\Query\Query
;
use
Solarium\Core\Client\Request
;
use
Solarium\Core\Client\Response
;
use
Solarium\Core\Query\Result\Result
;
/**
/**
* Interface for plugins
* Interface for plugins
...
...
library/Solarium/Core/Query/Helper.php
View file @
5d9b6d5e
library/Solarium/Core/Query/Query.php
View file @
5d9b6d5e
...
@@ -201,7 +201,7 @@ abstract class Query extends Configurable implements QueryInterface
...
@@ -201,7 +201,7 @@ abstract class Query extends Configurable implements QueryInterface
public
function
getResponseWriter
()
public
function
getResponseWriter
()
{
{
$responseWriter
=
$this
->
getOption
(
'responsewriter'
);
$responseWriter
=
$this
->
getOption
(
'responsewriter'
);
if
(
$responseWriter
===
null
)
{
if
(
$responseWriter
===
null
)
{
$responseWriter
=
self
::
WT_JSON
;
$responseWriter
=
self
::
WT_JSON
;
}
}
...
...
library/Solarium/Core/Query/ResponseParser.php
View file @
5d9b6d5e
...
@@ -63,7 +63,7 @@ abstract class ResponseParser
...
@@ -63,7 +63,7 @@ abstract class ResponseParser
$key
=
$data
[
$i
];
$key
=
$data
[
$i
];
$value
=
$data
[
$i
+
1
];
$value
=
$data
[
$i
+
1
];
if
(
array_key_exists
(
$key
,
$keys
))
{
if
(
array_key_exists
(
$key
,
$keys
))
{
if
(
$keys
[
$key
]
==
1
)
{
if
(
$keys
[
$key
]
==
1
)
{
$result
[
$key
]
=
array
(
$result
[
$key
]);
$result
[
$key
]
=
array
(
$result
[
$key
]);
}
}
$result
[
$key
][]
=
$value
;
$result
[
$key
][]
=
$value
;
...
...
library/Solarium/Core/Query/Result/Result.php
View file @
5d9b6d5e
library/Solarium/Plugin/BufferedAdd/BufferedAdd.php
View file @
5d9b6d5e
...
@@ -42,7 +42,6 @@ use Solarium\Core\Plugin\Plugin;
...
@@ -42,7 +42,6 @@ use Solarium\Core\Plugin\Plugin;
use
Solarium\QueryType\Update\Result
as
UpdateResult
;
use
Solarium\QueryType\Update\Result
as
UpdateResult
;
use
Solarium\QueryType\Update\Query\Query
as
UpdateQuery
;
use
Solarium\QueryType\Update\Query\Query
as
UpdateQuery
;
use
Solarium\QueryType\Select\Result\DocumentInterface
;
use
Solarium\QueryType\Select\Result\DocumentInterface
;
use
Solarium\QueryType\Select\Result\Document
as
ReadOnlyDocument
;
use
Solarium\Plugin\BufferedAdd\Event\Events
;
use
Solarium\Plugin\BufferedAdd\Event\Events
;
use
Solarium\Plugin\BufferedAdd\Event\PreFlush
as
PreFlushEvent
;
use
Solarium\Plugin\BufferedAdd\Event\PreFlush
as
PreFlushEvent
;
use
Solarium\Plugin\BufferedAdd\Event\PostFlush
as
PostFlushEvent
;
use
Solarium\Plugin\BufferedAdd\Event\PostFlush
as
PostFlushEvent
;
...
...
library/Solarium/Plugin/BufferedAdd/Event/Events.php
View file @
5d9b6d5e
...
@@ -47,7 +47,7 @@ class Events
...
@@ -47,7 +47,7 @@ class Events
/**
/**
* This event is called before a buffer flush
* This event is called before a buffer flush
*
*
* The event listener receives the buffer (array).
* The event listener receives the buffer (array)
.
*
*
* @var string
* @var string
*/
*/
...
@@ -62,11 +62,10 @@ class Events
...
@@ -62,11 +62,10 @@ class Events
*/
*/
const
POST_FLUSH
=
'solarium.bufferedAdd.postFlush'
;
const
POST_FLUSH
=
'solarium.bufferedAdd.postFlush'
;
/**
/**
* This event is called before a buffer commit
* This event is called before a buffer commit
*
*
* The event listener receives the buffer (array).
* The event listener receives the buffer (array)
.
*
*
* @var string
* @var string
*/
*/
...
...
library/Solarium/Plugin/BufferedAdd/Event/PreCommit.php
View file @
5d9b6d5e
library/Solarium/Plugin/BufferedAdd/Event/PreFlush.php
View file @
5d9b6d5e
library/Solarium/Plugin/CustomizeRequest/CustomizeRequest.php
View file @
5d9b6d5e
...
@@ -38,7 +38,6 @@
...
@@ -38,7 +38,6 @@
*/
*/
namespace
Solarium\Plugin\CustomizeRequest
;
namespace
Solarium\Plugin\CustomizeRequest
;
use
Solarium\Core\Plugin\Plugin
;
use
Solarium\Core\Plugin\Plugin
;
use
Solarium\Core\Query\Query
;
use
Solarium\Core\Client\Request
;
use
Solarium\Core\Client\Request
;
use
Solarium\Exception\InvalidArgumentException
;
use
Solarium\Exception\InvalidArgumentException
;
use
Solarium\Exception\RuntimeException
;
use
Solarium\Exception\RuntimeException
;
...
...
library/Solarium/Plugin/Loadbalancer/Event/EndpointFailure.php
View file @
5d9b6d5e
...
@@ -85,5 +85,4 @@ class EndpointFailure extends Event
...
@@ -85,5 +85,4 @@ class EndpointFailure extends Event
return
$this
->
exception
;
return
$this
->
exception
;
}
}
}
}
library/Solarium/Plugin/Loadbalancer/Loadbalancer.php
View file @
5d9b6d5e
library/Solarium/Plugin/Loadbalancer/WeightedRandomChoice.php
View file @
5d9b6d5e
...
@@ -128,7 +128,7 @@ class WeightedRandomChoice
...
@@ -128,7 +128,7 @@ class WeightedRandomChoice
$high
=
count
(
$this
->
lookup
)
-
1
;
$high
=
count
(
$this
->
lookup
)
-
1
;
$low
=
0
;
$low
=
0
;
while
(
$low
<
$high
)
{
while
(
$low
<
$high
)
{
$probe
=
(
int
)
((
$high
+
$low
)
/
2
);
$probe
=
(
int
)
((
$high
+
$low
)
/
2
);
if
(
$this
->
lookup
[
$probe
]
<
$random
)
{
if
(
$this
->
lookup
[
$probe
]
<
$random
)
{
$low
=
$probe
+
1
;
$low
=
$probe
+
1
;
...
...
library/Solarium/Plugin/ParallelExecution/Event/ExecuteStart.php
View file @
5d9b6d5e
...
@@ -38,7 +38,6 @@
...
@@ -38,7 +38,6 @@
*/
*/
namespace
Solarium\Plugin\ParallelExecution\Event
;
namespace
Solarium\Plugin\ParallelExecution\Event
;
use
Symfony\Component\EventDispatcher\Event
;
use
Symfony\Component\EventDispatcher\Event
;
use
Solarium\QueryType\Update\Result
;
/**
/**
* ExecuteStart event, see Events for details
* ExecuteStart event, see Events for details
...
...
library/Solarium/QueryType/Analysis/Query/Document.php
View file @
5d9b6d5e
library/Solarium/QueryType/Analysis/ResponseParser/Document.php
View file @
5d9b6d5e
...
@@ -37,7 +37,6 @@
...
@@ -37,7 +37,6 @@
* @namespace
* @namespace
*/
*/
namespace
Solarium\QueryType\Analysis\ResponseParser
;
namespace
Solarium\QueryType\Analysis\ResponseParser
;
use
Solarium\QueryType\Analysis\Result
as
AnalysisResult
;
use
Solarium\QueryType\Analysis\Result\ResultList
;
use
Solarium\QueryType\Analysis\Result\ResultList
;
/**
/**
...
...
library/Solarium/QueryType/Analysis/ResponseParser/Field.php
View file @
5d9b6d5e
...
@@ -102,8 +102,6 @@ class Field extends ResponseParserAbstract implements ResponseParserInterface
...
@@ -102,8 +102,6 @@ class Field extends ResponseParserAbstract implements ResponseParserInterface
$results
=
array
();
$results
=
array
();
foreach
(
$typeData
as
$fieldKey
=>
$fieldData
)
{
foreach
(
$typeData
as
$fieldKey
=>
$fieldData
)
{
$types
=
array
();
$types
=
array
();
foreach
(
$fieldData
as
$typeKey
=>
$typeData
)
{
foreach
(
$fieldData
as
$typeKey
=>
$typeData
)
{
...
...
library/Solarium/QueryType/Extract/Query.php
View file @
5d9b6d5e
...
@@ -333,6 +333,7 @@ class Query extends BaseQuery
...
@@ -333,6 +333,7 @@ class Query extends BaseQuery
public
function
clearFieldMappings
()
public
function
clearFieldMappings
()
{
{
$this
->
fieldMappings
=
array
();
$this
->
fieldMappings
=
array
();
return
$this
;
return
$this
;
}
}
...
@@ -398,6 +399,7 @@ class Query extends BaseQuery
...
@@ -398,6 +399,7 @@ class Query extends BaseQuery
public
function
createDocument
(
$fields
=
array
(),
$boosts
=
array
())
public
function
createDocument
(
$fields
=
array
(),
$boosts
=
array
())
{
{
$class
=
$this
->
getDocumentClass
();
$class
=
$this
->
getDocumentClass
();
return
new
$class
(
$fields
,
$boosts
);
return
new
$class
(
$fields
,
$boosts
);
}
}
...
...
library/Solarium/QueryType/Extract/RequestBuilder.php
View file @
5d9b6d5e
library/Solarium/QueryType/MoreLikeThis/Query.php
View file @
5d9b6d5e
library/Solarium/QueryType/Select/Query/Component/Component.php
View file @
5d9b6d5e
...
@@ -82,6 +82,7 @@ abstract class Component extends Configurable
...
@@ -82,6 +82,7 @@ abstract class Component extends Configurable
public
function
setQueryInstance
(
Query
$instance
)
public
function
setQueryInstance
(
Query
$instance
)
{
{
$this
->
queryInstance
=
$instance
;
$this
->
queryInstance
=
$instance
;
return
$this
;
return
$this
;
}
}
...
...
library/Solarium/QueryType/Select/Query/Component/Facet/MultiQuery.php
View file @
5d9b6d5e
library/Solarium/QueryType/Select/Query/Component/Facet/Range.php
View file @
5d9b6d5e
...
@@ -271,7 +271,6 @@ class Range extends Facet
...
@@ -271,7 +271,6 @@ class Range extends Facet
{
{
$other
=
$this
->
getOption
(
'other'
);
$other
=
$this
->
getOption
(
'other'
);
if
(
$other
===
null
)
$other
=
array
();
if
(
$other
===
null
)
$other
=
array
();
return
$other
;
return
$other
;
}
}
...
@@ -303,7 +302,6 @@ class Range extends Facet
...
@@ -303,7 +302,6 @@ class Range extends Facet
{
{
$include
=
$this
->
getOption
(
'include'
);
$include
=
$this
->
getOption
(
'include'
);
if
(
$include
===
null
)
$include
=
array
();
if
(
$include
===
null
)
$include
=
array
();
return
$include
;
return
$include
;
}
}
}
}
library/Solarium/QueryType/Select/Query/Component/FacetSet.php
View file @
5d9b6d5e
library/Solarium/QueryType/Select/Query/Component/Grouping.php
View file @
5d9b6d5e
library/Solarium/QueryType/Select/Query/Component/Highlighting/Highlighting.php
View file @
5d9b6d5e
...
@@ -518,7 +518,6 @@ class Highlighting extends Component
...
@@ -518,7 +518,6 @@ class Highlighting extends Component
return
$this
->
getOption
(
'tagpostfix'
);
return
$this
->
getOption
(
'tagpostfix'
);
}
}
/**
/**
* Set fragmenter option
* Set fragmenter option
*
*
...
...
library/Solarium/QueryType/Select/Query/Component/MoreLikeThis.php
View file @
5d9b6d5e
library/Solarium/QueryType/Select/Query/Component/Stats/Stats.php
View file @
5d9b6d5e
library/Solarium/QueryType/Select/Query/FilterQuery.php
View file @
5d9b6d5e
...
@@ -200,6 +200,7 @@ class FilterQuery extends Configurable
...
@@ -200,6 +200,7 @@ class FilterQuery extends Configurable
public
function
clearTags
()
public
function
clearTags
()
{
{
$this
->
tags
=
array
();
$this
->
tags
=
array
();
return
$this
;
return
$this
;
}
}
...
@@ -214,6 +215,7 @@ class FilterQuery extends Configurable
...
@@ -214,6 +215,7 @@ class FilterQuery extends Configurable
public
function
setTags
(
$tags
)
public
function
setTags
(
$tags
)
{
{
$this
->
clearTags
();
$this
->
clearTags
();
return
$this
->
addTags
(
$tags
);
return
$this
->
addTags
(
$tags
);
}
}
...
...
library/Solarium/QueryType/Select/Query/Query.php
View file @
5d9b6d5e
...
@@ -1081,6 +1081,7 @@ class Query extends BaseQuery
...
@@ -1081,6 +1081,7 @@ class Query extends BaseQuery
public
function
setTags
(
$tags
)
public
function
setTags
(
$tags
)
{
{
$this
->
clearTags
();
$this
->
clearTags
();
return
$this
->
addTags
(
$tags
);
return
$this
->
addTags
(
$tags
);
}
}
...
...
library/Solarium/QueryType/Select/RequestBuilder/Component/ComponentRequestBuilderInterface.php
View file @
5d9b6d5e
library/Solarium/QueryType/Select/RequestBuilder/Component/FacetSet.php
View file @
5d9b6d5e
library/Solarium/QueryType/Select/ResponseParser/Component/ComponentParserInterface.php
View file @
5d9b6d5e
library/Solarium/QueryType/Select/ResponseParser/Component/Debug.php
View file @
5d9b6d5e
library/Solarium/QueryType/Select/ResponseParser/Component/FacetSet.php
View file @
5d9b6d5e
library/Solarium/QueryType/Select/ResponseParser/Component/Grouping.php
View file @
5d9b6d5e
library/Solarium/QueryType/Select/ResponseParser/Component/Highlighting.php
View file @
5d9b6d5e
library/Solarium/QueryType/Select/ResponseParser/Component/MoreLikeThis.php
View file @
5d9b6d5e
library/Solarium/QueryType/Select/ResponseParser/Component/Spellcheck.php
View file @
5d9b6d5e
...
@@ -84,11 +84,11 @@ class Spellcheck extends ResponseParserAbstract implements ComponentParserInterf
...
@@ -84,11 +84,11 @@ class Spellcheck extends ResponseParserAbstract implements ComponentParserInterf
$correctlySpelled
=
$value
;
$correctlySpelled
=
$value
;
break
;
break
;
case
'collation'
:
case
'collation'
:
if
(
!
array_key_exists
(
'collation'
,
$value
))
{
if
(
!
array_key_exists
(
'collation'
,
$value
))
{
foreach
(
$value
as
$collationValue
)
{
foreach
(
$value
as
$collationValue
)
{
$collations
[]
=
$this
->
parseCollation
(
$query
,
$collationValue
);
$collations
[]
=
$this
->
parseCollation
(
$query
,
$collationValue
);
}
}
}
else
{
}
else
{
$collations
[]
=
$this
->
parseCollation
(
$query
,
$value
);
$collations
[]
=
$this
->
parseCollation
(
$query
,
$value
);
}
}
break
;
break
;
...
@@ -113,7 +113,6 @@ class Spellcheck extends ResponseParserAbstract implements ComponentParserInterf
...
@@ -113,7 +113,6 @@ class Spellcheck extends ResponseParserAbstract implements ComponentParserInterf
protected
function
parseCollation
(
$queryObject
,
$values
)
protected
function
parseCollation
(
$queryObject
,
$values
)
{
{
if
(
is_string
(
$values
))
{
if
(
is_string
(
$values
))
{
return
new
Collation
(
$values
,
null
,
array
());
return
new
Collation
(
$values
,
null
,
array
());
}
else
{
}
else
{
...
@@ -126,7 +125,7 @@ class Spellcheck extends ResponseParserAbstract implements ComponentParserInterf
...
@@ -126,7 +125,7 @@ class Spellcheck extends ResponseParserAbstract implements ComponentParserInterf
$values
=
$this
->
convertToKeyValueArray
(
$values
);
$values
=
$this
->
convertToKeyValueArray
(
$values
);
}
}
foreach
(
$values
as
$key
=>
$value
)
{
foreach
(
$values
as
$key
=>
$value
)
{
switch
(
$key
)
{
switch
(
$key
)
{
case
'collationQuery'
:
case
'collationQuery'
:
$query
=
$value
;
$query
=
$value
;
...
...
library/Solarium/QueryType/Select/ResponseParser/ResponseParser.php
View file @
5d9b6d5e
library/Solarium/QueryType/Select/Result/Document.php
View file @
5d9b6d5e
library/Solarium/QueryType/Terms/Query.php
View file @
5d9b6d5e
...
@@ -121,7 +121,6 @@ class Query extends BaseQuery
...
@@ -121,7 +121,6 @@ class Query extends BaseQuery
{
{
$value
=
$this
->
getOption
(
'fields'
);
$value
=
$this
->
getOption
(
'fields'
);
if
(
$value
===
null
)
$value
=
array
();
if
(
$value
===
null
)
$value
=
array
();
return
$value
;
return
$value
;
}
}
...
@@ -278,7 +277,6 @@ class Query extends BaseQuery
...
@@ -278,7 +277,6 @@ class Query extends BaseQuery
{
{
$value
=
$this
->
getOption
(
'regexflags'
);
$value
=
$this
->
getOption
(
'regexflags'
);
if
(
$value
===
null
)
$value
=
array
();
if
(
$value
===
null
)
$value
=
array
();
return
$value
;
return
$value
;
}
}
...
...
library/Solarium/QueryType/Terms/ResponseParser.php
View file @
5d9b6d5e
library/Solarium/QueryType/Update/Query/Command/Add.php
View file @
5d9b6d5e
library/Solarium/QueryType/Update/Query/Query.php
View file @
5d9b6d5e
library/Solarium/QueryType/Update/RequestBuilder.php
View file @
5d9b6d5e
library/Solarium/QueryType/Update/ResponseParser.php
View file @
5d9b6d5e
...
@@ -55,6 +55,7 @@ class ResponseParser extends ResponseParserAbstract implements ResponseParserInt
...
@@ -55,6 +55,7 @@ class ResponseParser extends ResponseParserAbstract implements ResponseParserInt
public
function
parse
(
$result
)
public
function
parse
(
$result
)
{
{
$data
=
$result
->
getData
();
$data
=
$result
->
getData
();
return
$this
->
addHeaderInfo
(
$data
,
array
());
return
$this
->
addHeaderInfo
(
$data
,
array
());
}
}
...
...
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