SwishSearch->resetLimit
(no version information, might be only in CVS)
SwishSearch->resetLimit -- Reset the search limits
Descrição
void
SwishSearch->resetLimit ( void )
Atenção |
Esta função é
EXPERIMENTAL. Isso quer dizer que o comportamento desta função
e seu nome, incluindo TUDO o que está documentado aqui
pode mudar em futuras versões do PHP, SEM QUALQUER NOTIFICAÇÃO.
Esteja avisado, e use esta função por sua própria conta e risco. |
Reset the search limits previous set by
SwishSearch->setLimit.
Valores de retornado
Não há valor retornado.
Exemplos
Exemplo 1. Basic SwishSearch->resetLimit() example
<?php
try {
$swish = new Swish("index.swish-e"); $search = $swish->prepare();
$results = $search->execute("time"); echo "First query found: ", $results->hits, " hits\n";
$search->setLimit("swishdocsize", "3000", "6000"); //limit by document size, from 3000 to 6000 bytes $results = $search->execute("time"); echo "Second query found: ", $results->hits, " hits\n";
$search->resetLimit(); $results = $search->execute("time"); echo "Third query found: ", $results->hits, " hits\n";
} catch (SwishException $e) { echo $e->getMessage(), "\n"; }
?>
|
O exemplo acima irá imprimir
algo similar a: First query found: 5 hits
Second query found: 2 hits
Third query found: 5 hits |
|