> For the complete documentation index, see [llms.txt](https://docs.comfortable.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.comfortable.io/sdk/php/fulltext-search.md).

# Fulltext Search

```php
<?php
// perform a fulltext search against all documents
$documents = $api->getDocuments()
    ->search('Football')
    ->execute();

// perform a fulltext search against collection documents
$collectionDocs = $api->getCollection('topNews')
    ->search('Football -soccer')
    ->execute();
```
