CirrusSearch
Elasticsearch-powered search for MediaWiki
|
Holds the Elastica result sets returned by Elastic when issuing search requests. More...
Public Member Functions | |
__construct (array $resultSets, array $requests, Status $status=null) | |
getResultSet ( $key) | |
transformAndGetMulti (ResultsType $transformation, array $keys, callable $reordering=null) | |
Transform all the resultsets identified by keys and wrap them inside a success Status stored as an array. | |
transformAndGetSingle (ResultsType $transformation, $key) | |
Transform the resultset identified by key and wrap it inside a success Status. | |
transformAsResultSet (ResultsType $transformation, $key) | |
Transform the resultset identified by key and returns it as a CirrusSearch ResultSet NOTE: The $tranformation provided must emit a CirrusResultSet. | |
hasResponses () | |
hasFailure () | |
getFailure () | |
hasTimeout () | |
hasResultsFor ( $key) | |
dumpResults ( $description) | |
Holds the Elastica result sets returned by Elastic when issuing search requests.
Used to keep track of which search request led to which result set.
CirrusSearch\Search\MSearchResponses::__construct | ( | array | $resultSets, |
array | $requests, | ||
Status | $status = null ) |
ElasticaResultSet[] | $resultSets | |
Search[] | $requests | |
Status | null | $status | failure |
CirrusSearch\Search\MSearchResponses::dumpResults | ( | $description | ) |
string | $description |
CirrusSearch\Search\MSearchResponses::getFailure | ( | ) |
CirrusSearch\Search\MSearchResponses::getResultSet | ( | $key | ) |
string | $key |
CirrusSearch\Search\MSearchResponses::hasFailure | ( | ) |
CirrusSearch\Search\MSearchResponses::hasResponses | ( | ) |
CirrusSearch\Search\MSearchResponses::hasResultsFor | ( | $key | ) |
string | $key |
CirrusSearch\Search\MSearchResponses::hasTimeout | ( | ) |
CirrusSearch\Search\MSearchResponses::transformAndGetMulti | ( | ResultsType | $transformation, |
array | $keys, | ||
callable | $reordering = null ) |
Transform all the resultsets identified by keys and wrap them inside a success Status stored as an array.
ResultsType | $transformation | |
string[] | $keys | |
callable | null | $reordering | reordering function |
CirrusSearch\Search\MSearchResponses::transformAndGetSingle | ( | ResultsType | $transformation, |
$key ) |
Transform the resultset identified by key and wrap it inside a success Status.
ResultsType | $transformation | |
string | $key |
CirrusSearch\Search\MSearchResponses::transformAsResultSet | ( | ResultsType | $transformation, |
$key ) |
Transform the resultset identified by key and returns it as a CirrusSearch ResultSet NOTE: The $tranformation provided must emit a CirrusResultSet.
ResultsType | $transformation | |
string | $key |