Commit b957fc40 authored by Bas de Nooijer's avatar Bas de Nooijer

merge of develop to feature/nextgen

parents a95eda25 b33c09bf
...@@ -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{
......
...@@ -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
...@@ -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
......
...@@ -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 its 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
......
...@@ -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 its key or the facetquery instance.
* *
* @param string|Query $query * @param string|Query $query
* @return self Provides fluent interface * @return self Provides fluent interface
......
...@@ -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
......
...@@ -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
......
...@@ -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 its 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
......
...@@ -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
......
...@@ -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
......
...@@ -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
......
...@@ -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 its 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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment