CirrusSearch
Elasticsearch-powered search for MediaWiki
|
A search query, it contains all the necessary information to build and send a query to the backend. More...
Public Member Functions | |
__construct (ParsedQuery $parsedQuery, array $initialNamespaces, CrossSearchStrategy $initialCrosswikiStrategy, array $contextualFilters, $searchEngineEntryPoint, $sort, $randomSeed, array $forcedProfiles, $offset, $limit, CirrusDebugOptions $debugOptions, SearchConfig $searchConfig, $withDYMSuggestion, $allowRewrite, array $profileContextParameters, array $extraFieldsToExtract, bool $provideAllSnippets) | |
getDebugOptions () | |
getParsedQuery () | |
getInitialNamespaces () | |
getInitialCrossSearchStrategy () | |
getCrossSearchStrategy () | |
getContextualFilters () | |
getSearchEngineEntryPoint () | |
From which SearchEngine method this query entered CirrusSearch. | |
getSort () | |
getRandomSeed () | |
getForcedProfiles () | |
getOffset () | |
getLimit () | |
getNamespaces () | |
List of namespaces required to run this query. | |
getSearchConfig () | |
getForcedProfile ( $profileType) | |
hasForcedProfile () | |
isWithDYMSuggestion () | |
isAllowRewrite () | |
getProfileContextParameters () | |
getExtraFieldsToExtract () | |
shouldProvideAllSnippets () | |
Public Attributes | |
const | SEARCH_TEXT = 'searchText' |
Identifier for the fulltext SearchEngine entry point. | |
A search query, it contains all the necessary information to build and send a query to the backend.
NOTE: Immutable value class.
CirrusSearch\Search\SearchQuery::__construct | ( | ParsedQuery | $parsedQuery, |
array | $initialNamespaces, | ||
CrossSearchStrategy | $initialCrosswikiStrategy, | ||
array | $contextualFilters, | ||
$searchEngineEntryPoint, | |||
$sort, | |||
$randomSeed, | |||
array | $forcedProfiles, | ||
$offset, | |||
$limit, | |||
CirrusDebugOptions | $debugOptions, | ||
SearchConfig | $searchConfig, | ||
$withDYMSuggestion, | |||
$allowRewrite, | |||
array | $profileContextParameters, | ||
array | $extraFieldsToExtract, | ||
bool | $provideAllSnippets ) |
ParsedQuery | $parsedQuery | |
int[] | $initialNamespaces | |
CrossSearchStrategy | $initialCrosswikiStrategy | |
\CirrusSearch\Query\Builder\ContextualFilter[] | $contextualFilters | |
string | $searchEngineEntryPoint | |
string | $sort | |
int | null | $randomSeed | |
string[] | $forcedProfiles | |
int | $offset | |
int | $limit | |
CirrusDebugOptions | $debugOptions | |
SearchConfig | $searchConfig | |
bool | $withDYMSuggestion | |
bool | $allowRewrite | |
string[] | $profileContextParameters | |
string[] | $extraFieldsToExtract | |
bool | $provideAllSnippets |
CirrusSearch\Search\SearchQuery::getContextualFilters | ( | ) |
CirrusSearch\Search\SearchQuery::getCrossSearchStrategy | ( | ) |
CirrusSearch\Search\SearchQuery::getDebugOptions | ( | ) |
CirrusSearch\Search\SearchQuery::getExtraFieldsToExtract | ( | ) |
CirrusSearch\Search\SearchQuery::getForcedProfile | ( | $profileType | ) |
string | $profileType |
CirrusSearch\Search\SearchQuery::getForcedProfiles | ( | ) |
CirrusSearch\Search\SearchQuery::getInitialCrossSearchStrategy | ( | ) |
CirrusSearch\Search\SearchQuery::getInitialNamespaces | ( | ) |
CirrusSearch\Search\SearchQuery::getLimit | ( | ) |
CirrusSearch\Search\SearchQuery::getNamespaces | ( | ) |
List of namespaces required to run this query.
CirrusSearch\Search\SearchQuery::getOffset | ( | ) |
CirrusSearch\Search\SearchQuery::getParsedQuery | ( | ) |
CirrusSearch\Search\SearchQuery::getProfileContextParameters | ( | ) |
CirrusSearch\Search\SearchQuery::getRandomSeed | ( | ) |
CirrusSearch\Search\SearchQuery::getSearchConfig | ( | ) |
CirrusSearch\Search\SearchQuery::getSearchEngineEntryPoint | ( | ) |
From which SearchEngine method this query entered CirrusSearch.
CirrusSearch\Search\SearchQuery::getSort | ( | ) |
CirrusSearch\Search\SearchQuery::hasForcedProfile | ( | ) |
CirrusSearch\Search\SearchQuery::isAllowRewrite | ( | ) |
CirrusSearch\Search\SearchQuery::isWithDYMSuggestion | ( | ) |
CirrusSearch\Search\SearchQuery::shouldProvideAllSnippets | ( | ) |
const CirrusSearch\Search\SearchQuery::SEARCH_TEXT = 'searchText' |
Identifier for the fulltext SearchEngine entry point.