$pages->search()
Searches the collection
Parameters
Name | Type | Default |
---|---|---|
$query | string |null |
null |
$params | array |string |
[ ] |
Return type
This method does not modify the existing $pages
object but returns a new object with the changes applied. Learn more →
Parent class
Kirby\Cms\Pages
inherited from Kirby\Cms\Collection
Parameter options
Option | Default | Description |
---|---|---|
minlength |
2 | Minimum length of search word |
fields |
[] |
Fields to search in, defaults to all fields |
words |
false |
Search full words only |
score |
['id' => 64,'title' => 64] |
Score per field |
stopwords |
[] |
Array of words to exclude from search |