Documentation

SearchMetaData
in package

Class for retrieving metadata such as error counts and metrics generated during search queries.

Table of Contents

$clientContextId  : string
$errorCount  : int|null
$maxScore  : float|null
$metrics  : array<string|int, mixed>|null
$successCount  : int|null
$took  : int|null
$totalHits  : int|null
clientContextId()  : string
Returns the id used to send this query.
errorCount()  : int|null
Returns the number of errors messages reported by individual pindexes
maxScore()  : float|null
Returns the highest score of all documents for this search query.
metrics()  : array<string|int, mixed>|null
Returns the metrics generated during execution of this search query.
successCount()  : int|null
Returns the number of pindexes successfully queried
took()  : int|null
Returns the time taken to complete the query
totalHits()  : int|null
Returns the total number of matches for this result

Properties

Methods

clientContextId()

Returns the id used to send this query.

public clientContextId() : string

.

Return values
string

errorCount()

Returns the number of errors messages reported by individual pindexes

public errorCount() : int|null
Return values
int|null

maxScore()

Returns the highest score of all documents for this search query.

public maxScore() : float|null
Return values
float|null

metrics()

Returns the metrics generated during execution of this search query.

public metrics() : array<string|int, mixed>|null
Return values
array<string|int, mixed>|null

successCount()

Returns the number of pindexes successfully queried

public successCount() : int|null
Return values
int|null

took()

Returns the time taken to complete the query

public took() : int|null
Return values
int|null

totalHits()

Returns the total number of matches for this result

public totalHits() : int|null
Return values
int|null

        

Search results