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
|
|
|
/**
|
2015-03-12 11:20:00 +01:00
|
|
|
* Searches for query results within a given limit.
|
2012-06-13 20:28:16 +02:00
|
|
|
*
|
2015-03-12 11:20:00 +01:00
|
|
|
* @param mixed $query Can be a string, an array or an \Elastica\Query object
|
|
|
|
* @param int $limit How many results to get
|
2014-02-05 02:41:38 +01:00
|
|
|
* @param array $options
|
2015-03-12 11:20:00 +01:00
|
|
|
*
|
2012-06-13 20:40:27 +02:00
|
|
|
* @return array results
|
|
|
|
*/
|
2015-03-12 11:20:00 +01:00
|
|
|
public function find($query, $limit = null, $options = array());
|
2011-04-20 22:53:59 +02:00
|
|
|
}
|