Cirrus debug options generally set via unofficial URI param (&cirrusXYZ=ZYX)
More...
Cirrus debug options generally set via unofficial URI param (&cirrusXYZ=ZYX)
◆ applyDebugOptions()
CirrusSearch\CirrusDebugOptions::applyDebugOptions |
( |
Query | $query | ) |
|
◆ defaultOptions()
static CirrusSearch\CirrusDebugOptions::defaultOptions |
( |
| ) |
|
|
static |
Default options (no debug options set)
- Returns
- CirrusDebugOptions
◆ forDumpingQueriesInUnitTests()
static CirrusSearch\CirrusDebugOptions::forDumpingQueriesInUnitTests |
( |
| $backCompat = true | ) |
|
|
static |
Dump the query but not die.
Only useful in Unit tests.
- Parameters
-
bool | $backCompat | used by unit tests when cross-repo dependencies need to preserve compatiblity until all patches are merged. |
- Returns
- CirrusDebugOptions
◆ forRelevanceTesting()
static CirrusSearch\CirrusDebugOptions::forRelevanceTesting |
( |
| $withExplain = null | ) |
|
|
static |
- Parameters
-
string | null | $withExplain | |
- Returns
- CirrusDebugOptions
◆ fromRequest()
static CirrusSearch\CirrusDebugOptions::fromRequest |
( |
\WebRequest | $request | ) |
|
|
static |
- Parameters
-
- Returns
- CirrusDebugOptions
◆ getCirrusCompletionVariant()
CirrusSearch\CirrusDebugOptions::getCirrusCompletionVariant |
( |
| ) |
|
◆ getCirrusExplainFormat()
CirrusSearch\CirrusDebugOptions::getCirrusExplainFormat |
( |
| ) |
|
- Returns
- string|null The formatting to apply, or null to return raw explains
◆ getCirrusMLRModel()
CirrusSearch\CirrusDebugOptions::getCirrusMLRModel |
( |
| ) |
|
◆ isCirrusDumpQuery()
CirrusSearch\CirrusDebugOptions::isCirrusDumpQuery |
( |
| ) |
|
◆ isCirrusDumpQueryAST()
CirrusSearch\CirrusDebugOptions::isCirrusDumpQueryAST |
( |
| ) |
|
◆ isCirrusDumpResult()
CirrusSearch\CirrusDebugOptions::isCirrusDumpResult |
( |
| ) |
|
◆ isDumpAndDie()
CirrusSearch\CirrusDebugOptions::isDumpAndDie |
( |
| ) |
|
◆ isReturnRaw()
CirrusSearch\CirrusDebugOptions::isReturnRaw |
( |
| ) |
|
- Returns
- bool true if raw data (query or results) needs to be returned
◆ mustNeverBeCached()
CirrusSearch\CirrusDebugOptions::mustNeverBeCached |
( |
| ) |
|
- Returns
- bool True when queries built with this set of debug options must not have their results cached and returned to other users.
The documentation for this class was generated from the following file:
- includes/CirrusDebugOptions.php