Home > PHP > Function > Swish > SwishSearch->execute()

SwishSearch->execute()

SwishSearch->execute - Execute the search and get the results

Syntax

object SwishSearch->execute (string $query)

Arguments

  • query - The query string is an optional parameter, it can be also set using Swish->prepare() method. The query string is preserved between executions, so you can set it once, but execute the search multiple times.

Description

Searches the index file(s) based on the parameters set in the search object.

Version

PHP PECL swish >= 0.1.0

Return value

Returns SwishResultsobject.