public function SearchQuery::__construct in Google Search Appliance 8
Constructs a new SearchQuery object.
Parameters
string $searchQuery: Search terms.
string|null $sort: Sort field. Pass 'date' for date search. Defaults to rel.
int $page: Results page.
array $languages: Array of language codes.
File
- src/
SearchResults/ SearchQuery.php, line 53
Class
- SearchQuery
- Defines a value object for creating a search.
Namespace
Drupal\google_appliance\SearchResultsCode
public function __construct($searchQuery, $sort = self::ORDER_REL, $page = 0, array $languages = []) {
$this->searchQuery = $searchQuery;
$this->sort = $sort;
$this->page = $page;
$this->languages = $languages;
}