mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-12 21:34:25 +00:00
19 lines
508 B
PHP
19 lines
508 B
PHP
<?php
|
|
|
|
namespace Chill\MainBundle\Search;
|
|
|
|
use Chill\MainBundle\Search\SearchApiQuery;
|
|
|
|
interface SearchApiInterface
|
|
{
|
|
public function provideQuery(string $pattern, array $parameters): SearchApiQuery;
|
|
|
|
public function supportsTypes(string $pattern, array $types, array $parameters): bool;
|
|
|
|
public function prepare(array $metadatas): void;
|
|
|
|
public function supportsResult(string $key, array $metadatas): bool;
|
|
|
|
public function getResult(string $key, array $metadata, float $pertinence);
|
|
}
|