SearchResult
This class represents a search result.
Properties¶
                 $aggregations
            ¶
        $aggregations
            ¶
    
        |  |  | 
                 $facets
            ¶
        $facets
            ¶
    
        The facets for this search.
|  |  | 
Tags
                 $maxScore
            ¶
        $maxScore
            ¶
    
        The maximum score of this query.
|  |  | 
                 $searchHits
            ¶
        $searchHits
            ¶
    
        The value objects found for the query.
|  |  | 
                 $spellcheck
            ¶
        $spellcheck
            ¶
    
        |  |  | 
                 $spellSuggestion
            ¶
        $spellSuggestion
            ¶
    
        If spellcheck is on this field contains a collated query suggestion where in the appropriate criterions the wrong spelled value is replaced by a corrected one (TBD).
|  |  | 
Tags
                 $time
            ¶
        $time
            ¶
    
        The duration of the search processing in ms.
|  |  | 
                 $timedOut
            ¶
        $timedOut
            ¶
    
        Indicates if the search has timed out.
|  |  | 
                 $totalCount
            ¶
        $totalCount
            ¶
    
        The total number of searchHits.
|  |  | 
null if Query->performCount was set to false and search engine avoids search lookup.
Methods¶
                 __construct()
            ¶
__construct()
            ¶
    
        Construct object optionally with a set of properties.
|  |  | 
Readonly properties values must be set using $properties as they aren't writable anymore
after object has been created.
Parameters
| Name | Type | Default value | Description | 
|---|---|---|---|
| $properties | array<string|int, mixed> | [] | - | 
                 getAggregations()
            ¶
getAggregations()
            ¶
    
        |  |  | 
Return values
AggregationResultCollection|null
                 getIterator()
            ¶
getIterator()
            ¶
    
        |  |  | 
Return values
Iterator
                 getSpellcheck()
            ¶
getSpellcheck()
            ¶
    
        |  |  | 
Return values
SpellcheckResult|null
                 getProperties()
            ¶
getProperties()
            ¶
    
        Returns list of available properties' names.
|  |  | 
Override to add dynamic properties.
Parameters
| Name | Type | Default value | Description | 
|---|---|---|---|
| $dynamicProperties | array<int, string> | [] | Additional dynamic properties exposed on the object | 
Return values
array<int, string>