CirrusSearch
Elasticsearch-powered search for MediaWiki
|
Extending from SearchRequestLog doesn't quite feel right, but there is a good amount of shared code. More...
Public Member Functions | |
getLogVariables () | |
Not sure what's best to return here, primarily we need whatever would be interesting when looking at error logging. | |
getRequests () | |
Public Member Functions inherited from CirrusSearch\SearchRequestLog | |
__construct (\Elastica\Client $client, $description, $queryType, array $extra=[], array $namespaces=null) | |
setCachedResult (array $extra) | |
finish () | |
Called when the network request has finished. | |
isCachedResponse () | |
getElasticTookMs () | |
Public Member Functions inherited from CirrusSearch\BaseRequestLog | |
__construct ( $description, $queryType, array $extra=[]) | |
start () | |
Called when the network request is started. | |
getTookMs () | |
getDescription () | |
getQueryType () | |
formatDescription () | |
Perform a quick and dirty replacement for $this->description when it's not going through monolog. | |
Protected Member Functions | |
extractRequestVariables ( $requestData) | |
Protected Member Functions inherited from CirrusSearch\SearchRequestLog | |
extractResponseVariables ( $responseData) | |
extractHits (array $responseData) | |
Additional Inherited Members | |
Protected Attributes inherited from CirrusSearch\SearchRequestLog | |
$request | |
$response | |
Protected Attributes inherited from CirrusSearch\BaseRequestLog | |
$description | |
$queryType | |
$extra | |
$startTime | |
$endTime | |
Extending from SearchRequestLog doesn't quite feel right, but there is a good amount of shared code.
think about best way.
|
protected |
CirrusSearch\MultiSearchRequestLog::getLogVariables | ( | ) |
Not sure what's best to return here, primarily we need whatever would be interesting when looking at error logging.
For now this just generates a context for the first request and ignores the existence of the rest.
Basically this is known to be wrong, but not sure what to do instead.
@phan-suppress-next-line PhanTypeMismatchArgumentInternal getData() actually returns array|string
Reimplemented from CirrusSearch\SearchRequestLog.
CirrusSearch\MultiSearchRequestLog::getRequests | ( | ) |
@phan-suppress-next-line PhanTypeMismatchArgumentInternal getData() actually returns array|string
Reimplemented from CirrusSearch\SearchRequestLog.