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
b957fc40
Commit
b957fc40
authored
Jun 13, 2012
by
Bas de Nooijer
Browse files
Options
Browse Files
Download
Plain Diff
merge of develop to feature/nextgen
parents
a95eda25
b33c09bf
Changes
12
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
19 additions
and
17 deletions
+19
-17
examples/4.3-extending-usage.php
examples/4.3-extending-usage.php
+1
-1
examples/7.1-plugin-loadbalancer.php
examples/7.1-plugin-loadbalancer.php
+3
-2
library/Solarium/Core/Configurable.php
library/Solarium/Core/Configurable.php
+2
-2
library/Solarium/Plugin/CustomizeRequest/CustomizeRequest.php
...ary/Solarium/Plugin/CustomizeRequest/CustomizeRequest.php
+1
-1
library/Solarium/QueryType/Select/Query/Component/Facet/MultiQuery.php
...ium/QueryType/Select/Query/Component/Facet/MultiQuery.php
+1
-1
library/Solarium/QueryType/Select/Query/Component/FacetSet.php
...ry/Solarium/QueryType/Select/Query/Component/FacetSet.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
+4
-2
library/Solarium/QueryType/Select/Result/Facet/Field.php
library/Solarium/QueryType/Select/Result/Facet/Field.php
+1
-1
library/Solarium/QueryType/Select/Result/Facet/MultiQuery.php
...ary/Solarium/QueryType/Select/Result/Facet/MultiQuery.php
+1
-1
library/Solarium/QueryType/Select/Result/Facet/Range.php
library/Solarium/QueryType/Select/Result/Facet/Range.php
+1
-1
library/Solarium/QueryType/Update/Query/Query.php
library/Solarium/QueryType/Update/Query/Query.php
+2
-3
No files found.
examples/4.3-extending-usage.php
View file @
b957fc40
...
@@ -27,7 +27,7 @@ class ProductQuery extends Select{
...
@@ -27,7 +27,7 @@ class ProductQuery extends Select{
}
}
// This query inherits all of the query params of it
'
s parent (using parent::_init) and adds some more
// This query inherits all of the query params of its parent (using parent::_init) and adds some more
// Ofcourse it could also alter or remove settings
// Ofcourse it could also alter or remove settings
class
ProductPriceLimitedQuery
extends
ProductQuery
{
class
ProductPriceLimitedQuery
extends
ProductQuery
{
...
...
examples/7.1-plugin-loadbalancer.php
View file @
b957fc40
...
@@ -26,8 +26,9 @@ for($i=1; $i<=8; $i++) {
...
@@ -26,8 +26,9 @@ for($i=1; $i<=8; $i++) {
echo
'Server: '
.
$loadbalancer
->
getLastEndpoint
()
.
'<hr/>'
;
echo
'Server: '
.
$loadbalancer
->
getLastEndpoint
()
.
'<hr/>'
;
}
}
// force a server for a query (normally solr 3 is extremely unlikely based on it
'
s weight)
// force a server for a query (normally solr 3 is extremely unlikely based on its weight)
$loadbalancer
->
setForcedEndpointForNextQuery
(
'local3'
);
$loadbalancer
->
setForcedEndpointForNextQuery
(
'local3'
);
$resultset
=
$client
->
select
(
$query
);
$resultset
=
$client
->
select
(
$query
);
echo
'Query execution with server forced to local3<br/>'
;
echo
'Query execution with server forced to local3<br/>'
;
echo
'NumFound: '
.
$resultset
->
getNumFound
()
.
'<br/>'
;
echo
'NumFound: '
.
$resultset
->
getNumFound
()
.
'<br/>'
;
...
@@ -45,4 +46,4 @@ $client->ping($query);
...
@@ -45,4 +46,4 @@ $client->ping($query);
echo
'Non-loadbalanced ping query, should not display a loadbalancing server:<br/>'
;
echo
'Non-loadbalanced ping query, should not display a loadbalancing server:<br/>'
;
echo
'Ping server: '
.
$loadbalancer
->
getLastEndpoint
()
.
'<hr/>'
;
echo
'Ping server: '
.
$loadbalancer
->
getLastEndpoint
()
.
'<hr/>'
;
htmlFooter
();
htmlFooter
();
\ No newline at end of file
library/Solarium/Core/Configurable.php
View file @
b957fc40
...
@@ -80,8 +80,8 @@ class Configurable implements ConfigurableInterface
...
@@ -80,8 +80,8 @@ class Configurable implements ConfigurableInterface
/**
/**
* Set options
* Set options
*
*
* If $options is an object
it will be converted into an array by called
* If $options is an object
, it will be converted into an array by calling
* it
'
s toArray method. This is compatible with the Zend_Config classes in
* its toArray method. This is compatible with the Zend_Config classes in
* Zend Framework, but can also easily be implemented in any other object.
* Zend Framework, but can also easily be implemented in any other object.
*
*
* @throws Exception
* @throws Exception
...
...
library/Solarium/Plugin/CustomizeRequest/CustomizeRequest.php
View file @
b957fc40
...
@@ -187,7 +187,7 @@ class CustomizeRequest extends Plugin
...
@@ -187,7 +187,7 @@ class CustomizeRequest extends Plugin
/**
/**
* Remove a single Customization
* Remove a single Customization
*
*
* You can remove a Customization by passing it
's key, or by passing the Customization instance
* You can remove a Customization by passing it
s key, or by passing the Customization instance.
*
*
* @param string|Customization $customization
* @param string|Customization $customization
* @return CustomizeRequest Provides fluent interface
* @return CustomizeRequest Provides fluent interface
...
...
library/Solarium/QueryType/Select/Query/Component/Facet/MultiQuery.php
View file @
b957fc40
...
@@ -196,7 +196,7 @@ class MultiQuery extends Facet
...
@@ -196,7 +196,7 @@ class MultiQuery extends Facet
/**
/**
* Remove a single facetquery
* Remove a single facetquery
*
*
* You can remove a facetquery by passing it
's key or the facetquery instance
* You can remove a facetquery by passing it
s key or the facetquery instance.
*
*
* @param string|Query $query
* @param string|Query $query
* @return self Provides fluent interface
* @return self Provides fluent interface
...
...
library/Solarium/QueryType/Select/Query/Component/FacetSet.php
View file @
b957fc40
...
@@ -352,7 +352,7 @@ class FacetSet extends Component
...
@@ -352,7 +352,7 @@ class FacetSet extends Component
/**
/**
* Remove a single facet
* Remove a single facet
*
*
* You can remove a facet by passing it
'
s key or the facet instance
* You can remove a facet by passing its key or the facet instance
*
*
* @param string|Facet\Facet $facet
* @param string|Facet\Facet $facet
* @return self Provides fluent interface
* @return self Provides fluent interface
...
...
library/Solarium/QueryType/Select/Query/Component/Stats/Stats.php
View file @
b957fc40
...
@@ -227,7 +227,7 @@ class Stats extends Component
...
@@ -227,7 +227,7 @@ class Stats extends Component
/**
/**
* Remove a single field
* Remove a single field
*
*
* You can remove a field by passing it
'
s key, or by passing the field instance
* You can remove a field by passing its key, or by passing the field instance
*
*
* @param string|Field $field
* @param string|Field $field
* @return self Provides fluent interface
* @return self Provides fluent interface
...
...
library/Solarium/QueryType/Select/Query/Query.php
View file @
b957fc40
...
@@ -371,6 +371,8 @@ class Query extends BaseQuery
...
@@ -371,6 +371,8 @@ class Query extends BaseQuery
/**
/**
* Set a custom document class
* Set a custom document class
*
*
* 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
*/
*/
...
@@ -694,7 +696,7 @@ class Query extends BaseQuery
...
@@ -694,7 +696,7 @@ class Query extends BaseQuery
/**
/**
* Remove a single filterquery
* Remove a single filterquery
*
*
* You can remove a filterquery by passing it
'
s key, or by passing the filterquery instance
* You can remove a filterquery by passing its key, or by passing the filterquery instance
*
*
* @param string|FilterQuery $filterQuery
* @param string|FilterQuery $filterQuery
* @return self Provides fluent interface
* @return self Provides fluent interface
...
@@ -824,7 +826,7 @@ class Query extends BaseQuery
...
@@ -824,7 +826,7 @@ class Query extends BaseQuery
/**
/**
* Remove a component instance
* Remove a component instance
*
*
* You can remove a component by passing it
's key or the component instance
* You can remove a component by passing it
s key or the component instance.
*
*
* @param string|Component\Component $component
* @param string|Component\Component $component
* @return self Provides fluent interface
* @return self Provides fluent interface
...
...
library/Solarium/QueryType/Select/Result/Facet/Field.php
View file @
b957fc40
...
@@ -42,7 +42,7 @@ namespace Solarium\QueryType\Select\Result\Facet;
...
@@ -42,7 +42,7 @@ namespace Solarium\QueryType\Select\Result\Facet;
* Select field facet result
* Select field facet result
*
*
* A field facet will usually return a dataset of multiple rows, in each row a
* A field facet will usually return a dataset of multiple rows, in each row a
* value and it
'
s count. You can access the values as an array using
* value and its count. You can access the values as an array using
* {@link getValues()} or iterate this object.
* {@link getValues()} or iterate this object.
*/
*/
class
Field
implements
\IteratorAggregate
,
\Countable
class
Field
implements
\IteratorAggregate
,
\Countable
...
...
library/Solarium/QueryType/Select/Result/Facet/MultiQuery.php
View file @
b957fc40
...
@@ -42,7 +42,7 @@ namespace Solarium\QueryType\Select\Result\Facet;
...
@@ -42,7 +42,7 @@ namespace Solarium\QueryType\Select\Result\Facet;
* Select multiquery facet result
* Select multiquery facet result
*
*
* A multiquery facet will usually return a dataset of multiple rows, in each
* A multiquery facet will usually return a dataset of multiple rows, in each
* row a query key and it
'
s count. You can access the values as an array using
* row a query key and its count. You can access the values as an array using
* {@link getValues()} or iterate this object.
* {@link getValues()} or iterate this object.
*/
*/
class
MultiQuery
extends
Field
class
MultiQuery
extends
Field
...
...
library/Solarium/QueryType/Select/Result/Facet/Range.php
View file @
b957fc40
...
@@ -42,7 +42,7 @@ namespace Solarium\QueryType\Select\Result\Facet;
...
@@ -42,7 +42,7 @@ namespace Solarium\QueryType\Select\Result\Facet;
* Select range facet result
* Select range facet result
*
*
* A multiquery facet will usually return a dataset of multiple count, in each
* A multiquery facet will usually return a dataset of multiple count, in each
* row a range as key and it
'
s count. You can access the values as an array using
* row a range as key and its count. You can access the values as an array using
* {@link getValues()} or iterate this object.
* {@link getValues()} or iterate this object.
*
*
* The extra counts 'before', 'between' and 'after' are only available if the
* The extra counts 'before', 'between' and 'after' are only available if the
...
...
library/Solarium/QueryType/Update/Query/Query.php
View file @
b957fc40
...
@@ -224,7 +224,7 @@ class Query extends BaseQuery
...
@@ -224,7 +224,7 @@ class Query extends BaseQuery
/**
/**
* Remove a command
* Remove a command
*
*
* You can remove a command by passing it
's key or by passing the command instance
* You can remove a command by passing it
s key or by passing the command instance.
*
*
* @param string|Command\Command $command
* @param string|Command\Command $command
* @return self Provides fluent interface
* @return self Provides fluent interface
...
@@ -439,8 +439,7 @@ class Query extends BaseQuery
...
@@ -439,8 +439,7 @@ class Query extends BaseQuery
/**
/**
* Set a custom document class for use in the createDocument method
* Set a custom document class for use in the createDocument method
*
*
* This class should extend the Document class or
* This class should implement the document interface
* at least be compatible with it's interface
*
*
* @param string $value classname
* @param string $value classname
* @return self Provides fluent interface
* @return self Provides fluent interface
...
...
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