16 lines
324 B
PHP
16 lines
324 B
PHP
|
<?php
|
||
|
|
||
|
namespace FOQ\ElasticaBundle\Finder;
|
||
|
|
||
|
interface FinderInterface
|
||
|
{
|
||
|
/**
|
||
|
* Searches for query results within a given limit
|
||
|
*
|
||
|
* @param mixed $query Can be a string, an array or an Elastica_Query object
|
||
|
* @param int $limit How many results to get
|
||
|
* @return array results
|
||
|
*/
|
||
|
function find($query, $limit);
|
||
|
}
|