메소드 |
설명 |
|
__call ( string $method, array $arguments ) |
Magic method to pass query building to the underlying query
object, saving the need to abstract. |
|
__construct ( Doctrine\Search\SearchManager $sm ) |
|
|
addFrom ( string $entityClass ) |
Add a searchable entity class to search against. |
|
count ( ) |
Return the total hit count for the given query as provided by
the search engine. |
|
from ( mixed $entityClasses ) |
Specifies the searchable entity class to search against. |
|
getFacets ( ) : array |
|
|
getResult ( integer $hydrationMode = null ) : mixed |
Execute search and hydrate results if required. |
|
getSingleResult ( integer $hydrationMode = null ) : mixed |
Execute search for single result and hydrate results if required. |
|
hydrateWith ( object $hydrationQuery, string $parameter = null ) |
Set a custom Doctrine Query to execute in order to hydrate the search
engine results into required entities. The assumption is made the the
search engine result id is correlated to the entity id. An optional
query parameter override can be specified. |
|
searchWith ( mixed $query ) |
Set the query object to be executed on the search engine |
|
setHydrationMode ( integer $mode ) |
Set the hydration mode from the underlying query modes
or bypass and return search result directly from the client |
|
useResultCache ( boolean $useCache, integer $cacheLifetime = null ) |
If hydrating with Doctrine then you can use the result cache
on the default or provided query |
|