PHP 클래스 Sulu\Bundle\SearchBundle\Controller\SearchController

파일 보기 프로젝트 열기: sulu/sulu

공개 메소드들

메소드 설명
__construct ( Massive\Bundle\SearchBundle\Search\SearchManagerInterface $searchManager, Massive\Bundle\SearchBundle\Search\Metadata\ProviderInterface $metadataProvider, Sulu\Component\Security\Authorization\SecurityCheckerInterface $securityChecker, FOS\RestBundle\View\ViewHandlerInterface $viewHandler, Sulu\Component\Rest\ListBuilder\ListRestHelperInterface $listRestHelper, Sulu\Bundle\SearchBundle\Search\Configuration\IndexConfigurationProviderInterface $indexConfigurationProvider )
indexesAction ( ) : Response Return a JSON encoded scalar array of index names.
searchAction ( Request $request ) : Response Perform a search and return a JSON response.

비공개 메소드들

메소드 설명
getAllowedIndexes ( ) : array
getIndexTotals ( $hits ) : array Return the category totals for the search results.

메소드 상세

__construct() 공개 메소드

public __construct ( Massive\Bundle\SearchBundle\Search\SearchManagerInterface $searchManager, Massive\Bundle\SearchBundle\Search\Metadata\ProviderInterface $metadataProvider, Sulu\Component\Security\Authorization\SecurityCheckerInterface $securityChecker, FOS\RestBundle\View\ViewHandlerInterface $viewHandler, Sulu\Component\Rest\ListBuilder\ListRestHelperInterface $listRestHelper, Sulu\Bundle\SearchBundle\Search\Configuration\IndexConfigurationProviderInterface $indexConfigurationProvider )
$searchManager Massive\Bundle\SearchBundle\Search\SearchManagerInterface
$metadataProvider Massive\Bundle\SearchBundle\Search\Metadata\ProviderInterface
$securityChecker Sulu\Component\Security\Authorization\SecurityCheckerInterface
$viewHandler FOS\RestBundle\View\ViewHandlerInterface
$listRestHelper Sulu\Component\Rest\ListBuilder\ListRestHelperInterface
$indexConfigurationProvider Sulu\Bundle\SearchBundle\Search\Configuration\IndexConfigurationProviderInterface

indexesAction() 공개 메소드

Return a JSON encoded scalar array of index names.
public indexesAction ( ) : Response
리턴 Symfony\Component\HttpFoundation\Response

searchAction() 공개 메소드

Perform a search and return a JSON response.
public searchAction ( Request $request ) : Response
$request Symfony\Component\HttpFoundation\Request
리턴 Symfony\Component\HttpFoundation\Response