source: sandbox/expresso-solr/expressoMail1_2/inc/solrclient/examples/2.2.3-delete-by-id.php @ 7576

Revision 7576, 539 bytes checked in by adir, 11 years ago (diff)

Ticket #000 - Adicionando a integracao de buscas com Solr na base a ser isnerida na comunidade

Line 
1<?php
2
3require('init.php');
4htmlHeader();
5
6// create a client instance
7$client = new Solarium_Client($config);
8
9// get an update query instance
10$update = $client->createUpdate();
11
12// add the delete id and a commit command to the update query
13$update->addDeleteById(123);
14$update->addCommit();
15
16// this executes the query and returns the result
17$result = $client->update($update);
18
19echo '<b>Update query executed</b><br/>';
20echo 'Query status: ' . $result->getStatus(). '<br/>';
21echo 'Query time: ' . $result->getQueryTime();
22
23htmlFooter();
Note: See TracBrowser for help on using the repository browser.