CirrusSearch
Elasticsearch-powered search for MediaWiki
|
Basic SearchQuery routing functionality which produces a constant score when successful, 0.0 otherwise. More...
Public Member Functions | |
__construct ( $searchEngineEntryPoint, array $namespaces, array $acceptableQueryClasses, $profileContext, $score) | |
score (\CirrusSearch\Search\SearchQuery $query) | |
getSearchEngineEntryPoint () | |
The entry point used in the search engine: | |
getProfileContext () | |
The SearchProfile context to use when this route is chosen. | |
Public Member Functions inherited from CirrusSearch\Dispatch\SearchQueryRoute | |
score (SearchQuery $query) | |
Compute a score for this particular $query. | |
Basic SearchQuery routing functionality which produces a constant score when successful, 0.0 otherwise.
Inspect the requested namespaces and the classes of the query.
CirrusSearch\Dispatch\BasicSearchQueryRoute::__construct | ( | $searchEngineEntryPoint, | |
array | $namespaces, | ||
array | $acceptableQueryClasses, | ||
$profileContext, | |||
$score ) |
string | $searchEngineEntryPoint | |
int[] | $namespaces | |
string[] | $acceptableQueryClasses | |
string | $profileContext | |
float | $score |
CirrusSearch\Dispatch\BasicSearchQueryRoute::getProfileContext | ( | ) |
The SearchProfile context to use when this route is chosen.
Implements CirrusSearch\Dispatch\SearchQueryRoute.
CirrusSearch\Dispatch\BasicSearchQueryRoute::getSearchEngineEntryPoint | ( | ) |
The entry point used in the search engine:
Implements CirrusSearch\Dispatch\SearchQueryRoute.
CirrusSearch\Dispatch\BasicSearchQueryRoute::score | ( | \CirrusSearch\Search\SearchQuery | $query | ) |
\CirrusSearch\Search\SearchQuery | $query |