FOSElasticaBundle/Finder/FinderInterface.php

18 lines
425 B
PHP
Raw Normal View History

<?php
namespace FOS\ElasticaBundle\Finder;
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
* @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());
}