Copied!

SearchResult

SearchResult.php : 19
Extends ValueObject
Implements IteratorAggregate, AggregationResultAwareInterface

This class represents a search result.

Properties

public $aggregations

SearchResult.php : 33
public AggregationResultCollection $aggregations

public $facets

SearchResult.php : 28

The facets for this search.

public array<string|int, Facet$facets = []
Tags
Deprecated

since eZ Platform 3.2.0, to be removed in Ibexa 4.0.0.

public $maxScore

SearchResult.php : 73

The maximum score of this query.

public float $maxScore

public $searchHits

SearchResult.php : 40

The value objects found for the query.

public array<string|int, SearchHit$searchHits = []

public $spellcheck

SearchResult.php : 52
public SpellcheckResult|null $spellcheck = null

public $spellSuggestion

SearchResult.php : 50

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).

public Criterion $spellSuggestion
Tags
Deprecated

since Ibexa 4.6.0, to be removed in Ibexa 5.0.0.

public $time

SearchResult.php : 59

The duration of the search processing in ms.

public int $time

public $timedOut

SearchResult.php : 66

Indicates if the search has timed out.

public bool $timedOut

public $totalCount

SearchResult.php : 82

The total number of searchHits.

public int|null $totalCount

null if Query->performCount was set to false and search engine avoids search lookup.

Methods

public__construct()

SearchResult.php : 84

Construct object optionally with a set of properties.

public __construct([array<string|int, mixed> $properties = [] ])

Readonly properties values must be set using $properties as they are not writable anymore after object has been created.

Parameters

Name Type Default value Description
$properties array<string|int, mixed> [] -

publicgetAggregations()

SearchResult.php : 98
public getAggregations() : AggregationResultCollection|null

Return values

AggregationResultCollection|null

publicgetIterator()

SearchResult.php : 103
public getIterator() : Iterator

Return values

Iterator

publicgetSpellcheck()

SearchResult.php : 93
public getSpellcheck() : SpellcheckResult|null

Return values

SpellcheckResult|null

protectedgetProperties()

ValueObject.php : 50

Function where list of properties are returned.

protected getProperties([array<string|int, mixed> $dynamicProperties = [] ]) : array<string|int, mixed>

Used by attributes(), override to add dynamic properties

Parameters

Name Type Default value Description
$dynamicProperties array<string|int, mixed> []

Additional dynamic properties exposed on the object

Return values

array<string|int, mixed>