CirrusSearch
Elasticsearch-powered search for MediaWiki
|
The Search query dispatch service. More...
Public Member Functions | |
bestRoute (SearchQuery $query) | |
Determine the best route for the $query. | |
Public Attributes | |
const | CIRRUS_DEFAULTS_SCORE = 0.0001 |
Score used by cirrus defaults. | |
The Search query dispatch service.
Based on a SearchQuery and the SearchQueryRoute that have been declared find the best possible route for this query.
All routes are evaluated the best one is returned.
CirrusSearch\Dispatch\SearchQueryDispatchService::bestRoute | ( | SearchQuery | $query | ) |
Determine the best route for the $query.
SearchQuery | $query |
const CirrusSearch\Dispatch\SearchQueryDispatchService::CIRRUS_DEFAULTS_SCORE = 0.0001 |
Score used by cirrus defaults.
Anything below is unlikely to be selected as cirrus defaults are made to catchup all query types.