FOSElasticaBundle/Finder/FinderInterface.php

17 lines
338 B
PHP
Raw Normal View History

<?php
namespace FOQ\ElasticaBundle\Finder;
interface FinderInterface
{
2012-06-13 20:28:16 +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
*
* @return array results
*/
2012-06-13 20:28:16 +02:00
function find($query, $limit);
}