Delicious Bookmark this on Delicious Share on Facebook SlashdotSlashdot It! Digg! Digg



PHP : Function Reference : Swish Functions : SwishResults->nextResult

SwishResults->nextResult

Get the next search result ()
object SwishResults->nextResult ( )

Example 2514. Basic SwishResults->nextResult() example

<?php

try {

   
$swish = new Swish("index.swish-e");
   
$search = $swish->prepare();

   
$results = $search->execute("lost");
   while(
$result = $results->nextResult()) {
       
/* do something with the result object */
   
}

} catch (
SwishException $e) {
   echo
$e->getMessage(), "\n";
}

?>

Change Language


Follow Navioo On Twitter
Swish::__construct
Swish->getMetaList
Swish->getPropertyList
Swish->prepare
Swish->query
SwishResult->getMetaList
SwishResult->stem
SwishResults->getParsedWords
SwishResults->getRemovedStopwords
SwishResults->nextResult
SwishResults->seekResult
SwishSearch->execute
SwishSearch->resetLimit
SwishSearch->setLimit
SwishSearch->setPhraseDelimiter
SwishSearch->setSort
SwishSearch->setStructure
eXTReMe Tracker