Links

Query by Fields

Here we will show you how you can query documents by a specific fields
<?php
use Comfortable\Filter;
$results = $api->getDocuments()
->filter(
(new Filter)
->addAnd('title', 'like', '%Football%')
->addOr('title', 'like', '%Soccer%')
)
->execute();
// $results will hold all documents which contains "Football" or "Soccer" in it its title field