Builder for SearchQuery.
More...
◆ addContextualFilter()
CirrusSearch\Search\SearchQueryBuilder::addContextualFilter |
( |
| $name, |
|
|
ContextualFilter | $filter ) |
- Parameters
-
string | $name | |
ContextualFilter | $filter | |
- Returns
- SearchQueryBuilder
◆ addForcedProfile()
CirrusSearch\Search\SearchQueryBuilder::addForcedProfile |
( |
| $type, |
|
|
| $forcedProfile ) |
- Parameters
-
string | $type | |
string | $forcedProfile | |
- Returns
- SearchQueryBuilder
◆ addProfileContextParameter()
CirrusSearch\Search\SearchQueryBuilder::addProfileContextParameter |
( |
| $key, |
|
|
| $value ) |
- Parameters
-
- Returns
- SearchQueryBuilder
- See also
- \CirrusSearch\Profile\ContextualProfileOverride
◆ build()
CirrusSearch\Search\SearchQueryBuilder::build |
( |
| ) |
|
◆ forCrossLanguageSearch()
static CirrusSearch\Search\SearchQueryBuilder::forCrossLanguageSearch |
( |
SearchConfig | $config, |
|
|
SearchQuery | $original ) |
|
static |
- Parameters
-
SearchConfig | $config | |
SearchQuery | $original | |
- Returns
- SearchQueryBuilder
◆ forCrossProjectSearch()
Recreate a SearchQueryBuilder using an existing query and the target wiki SearchConfig.
- Parameters
-
SearchConfig | $config | |
SearchQuery | $query | |
- Returns
- SearchQueryBuilder
◆ forRewrittenQuery()
- Parameters
-
SearchQuery | $original | |
string | $term | |
NamespacePrefixParser | $namespacePrefixParser | |
CirrusSearchHookRunner | $cirrusSearchHookRunner | |
- Returns
- SearchQueryBuilder
- Exceptions
-
CirrusSearch\Parser\QueryStringRegex\SearchQueryParseException
◆ newFTSearchQueryBuilder()
Construct a new FT (FullText) SearchQueryBuilder using the config and query string provided.
NOTE: this method will parse the query string and set all builder attributes to Fulltext search defaults.
- Parameters
-
SearchConfig | $config | |
string | $queryString | |
NamespacePrefixParser | $namespacePrefixParser | |
CirrusSearchHookRunner | $cirrusSearchHookRunner | |
- Returns
- SearchQueryBuilder
- Exceptions
-
CirrusSearch\Parser\ParsedQueryClassifierException
- Exceptions
-
CirrusSearch\Parser\QueryStringRegex\SearchQueryParseException
◆ setAllowRewrite()
CirrusSearch\Search\SearchQueryBuilder::setAllowRewrite |
( |
| $allowRewrite | ) |
|
- Parameters
-
- Returns
- SearchQueryBuilder
◆ setCrossLanguageSearch()
CirrusSearch\Search\SearchQueryBuilder::setCrossLanguageSearch |
( |
| $crossLanguageSearch | ) |
|
- Parameters
-
- Returns
- SearchQueryBuilder
◆ setCrossProjectSearch()
CirrusSearch\Search\SearchQueryBuilder::setCrossProjectSearch |
( |
| $crossProjectSearch | ) |
|
- Parameters
-
- Returns
- SearchQueryBuilder
◆ setDebugOptions()
CirrusSearch\Search\SearchQueryBuilder::setDebugOptions |
( |
CirrusDebugOptions | $debugOptions | ) |
|
- Parameters
-
CirrusDebugOptions | $debugOptions | |
- Returns
- SearchQueryBuilder
◆ setExtraFieldsToExtract()
CirrusSearch\Search\SearchQueryBuilder::setExtraFieldsToExtract |
( |
array | $fields | ) |
|
- Parameters
-
- Returns
- SearchQueryBuilder
◆ setExtraIndicesSearch()
CirrusSearch\Search\SearchQueryBuilder::setExtraIndicesSearch |
( |
| $extraIndicesSearch | ) |
|
- Parameters
-
- Returns
- SearchQueryBuilder
◆ setInitialNamespaces()
CirrusSearch\Search\SearchQueryBuilder::setInitialNamespaces |
( |
array | $initialNamespaces | ) |
|
- Parameters
-
- Returns
- SearchQueryBuilder
◆ setLimit()
CirrusSearch\Search\SearchQueryBuilder::setLimit |
( |
| $limit | ) |
|
- Parameters
-
- Returns
- SearchQueryBuilder
◆ setOffset()
CirrusSearch\Search\SearchQueryBuilder::setOffset |
( |
| $offset | ) |
|
- Parameters
-
- Returns
- SearchQueryBuilder
◆ setRandomSeed()
CirrusSearch\Search\SearchQueryBuilder::setRandomSeed |
( |
?int | $randomSeed | ) |
|
◆ setSearchEngineEntryPoint()
CirrusSearch\Search\SearchQueryBuilder::setSearchEngineEntryPoint |
( |
| $searchEngineEntryPoint | ) |
|
- Parameters
-
string | $searchEngineEntryPoint | |
- Returns
- SearchQueryBuilder
◆ setSort()
CirrusSearch\Search\SearchQueryBuilder::setSort |
( |
| $sort | ) |
|
- Parameters
-
- Returns
- SearchQueryBuilder
◆ setWithDYMSuggestion()
CirrusSearch\Search\SearchQueryBuilder::setWithDYMSuggestion |
( |
| $withDYMSuggestion | ) |
|
- Parameters
-
- Returns
- SearchQueryBuilder
The documentation for this class was generated from the following file:
- includes/Search/SearchQueryBuilder.php