1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
<?php
namespace Basho\Riak\Command\Builder\Search;
use Basho\Riak;
use Basho\Riak\Command;
/**
* Used to increment counter objects in Riak by the provided positive / negative integer
*
* <code>
* $command = (new Command\Builder\StoreObject($riak))
* ->buildObject('{"firstName":"John","lastName":"Doe","email":"johndoe@gmail.com"}')
* ->buildBucket('users')
* ->build();
*
* $response = $command->execute($command);
*
* $user_location = $response->getLocation();
* </code>
*
* @author Christopher Mancini <cmancini at basho d0t com>
*/
class DissociateIndex extends Command\Builder\SetBucketProperties implements Command\BuilderInterface
{
public function __construct(Riak $riak)
{
parent::__construct($riak);
$this->set('search_index', '_dont_index_');
}
}