CirrusSearch
Elasticsearch-powered search for MediaWiki
|
For a given search engine entry point a SearchQueryRoute evaluates a particular SearchQuery and assign it a score. More...
Public Member Functions | |
score (SearchQuery $query) | |
Compute a score for this particular $query. | |
getSearchEngineEntryPoint () | |
The entry point used in the search engine: | |
getProfileContext () | |
The SearchProfile context to use when this route is chosen. | |
For a given search engine entry point a SearchQueryRoute evaluates a particular SearchQuery and assign it a score.
The SearchQueryDispatchService evaluates these scores and chose the best one in order to assign the profile context using the one provided by the route itself. SearchQueryRoutes are evaluated just after the SearchQuery is constructed and before ES query building components are chosen.
CirrusSearch\Dispatch\SearchQueryRoute::getProfileContext | ( | ) |
The SearchProfile context to use when this route is chosen.
Implemented in CirrusSearch\Dispatch\BasicSearchQueryRoute, and CirrusSearch\Dispatch\CirrusDefaultSearchQueryRoute.
CirrusSearch\Dispatch\SearchQueryRoute::getSearchEngineEntryPoint | ( | ) |
The entry point used in the search engine:
Implemented in CirrusSearch\Dispatch\BasicSearchQueryRoute, and CirrusSearch\Dispatch\CirrusDefaultSearchQueryRoute.
CirrusSearch\Dispatch\SearchQueryRoute::score | ( | SearchQuery | $query | ) |
Compute a score for this particular $query.
Special values:
SearchQuery | $query |