2011-04-20 22:53:59 +02:00
|
|
|
<?php
|
|
|
|
|
2013-03-27 18:44:06 +01:00
|
|
|
namespace FOS\ElasticaBundle\Finder;
|
2011-04-20 22:53:59 +02:00
|
|
|
|
|
|
|
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
|
|
|
*
|
2013-04-22 13:20:10 +02:00
|
|
|
* @param mixed $query Can be a string, an array or an \Elastica\Query object
|
2012-08-07 20:42:38 +02:00
|
|
|
* @param int $limit How many results to get
|
2014-02-05 02:41:38 +01:00
|
|
|
* @param array $options
|
2012-06-13 20:40:27 +02:00
|
|
|
* @return array results
|
|
|
|
*/
|
2014-02-05 02:41:38 +01:00
|
|
|
function find($query, $limit = null, $options = array());
|
2011-04-20 22:53:59 +02:00
|
|
|
}
|