FOSElasticaBundle/Finder/FinderInterface.php

16 lines
356 B
PHP
Raw Normal View History

<?php
namespace FOS\ElasticaBundle\Finder;
interface FinderInterface
{
2012-06-13 20:28:16 +02:00
/**
2012-06-13 20:40:27 +02:00
* Searches for query results within a given limit
2012-06-13 20:28:16 +02:00
*
* @param mixed $query Can be a string, an array or an \Elastica\Query object
* @param int $limit How many results to get
2012-06-13 20:40:27 +02:00
* @return array results
*/
function find($query, $limit = null);
}