This class is used to perform a Location query.
Constants¶
SORT_ASC ¶
|
|
SORT_DESC ¶
|
|
Properties¶
$aggregations¶
|
|
$facetBuilders¶
An array of facet builders.
|
|
Search engines may ignore any, or given facet builders they don't support and will just return search result facets supported by the engine. API consumer should dynamically iterate over returned facets for further use.
$filter¶
The Query filter.
|
|
For the storage backend that supports it (Solr) filters the result set without influencing score. It also offers better performance as filter part of the Query can be cached.
In case when the backend does not distinguish between query and filter (Legacy Storage implementation), it will simply be combined with Query query using LogicalAnd criterion.
Can contain multiple criterion, as items of a logical one (by default AND)
$limit¶
Query limit.
|
|
Limit for number of search hits to return.
If value is 0
, search query will not return any search hits, useful for doing a count.
$offset¶
Query offset.
|
|
Sets the offset for search hits, used for paging the results.
$performCount¶
If true, search engine should perform count even if that means extra lookup.
|
|
$query¶
The Query query.
|
|
For the storage backend that supports it (Solr Storage) query will influence score of the search results.
Can contain multiple criterion, as items of a logical one (by default AND). Defaults to MatchAll.
$sortClauses¶
Query sorting clauses.
|
|
$spellcheck¶
Spellcheck suggestions are returned.
|
|
Methods¶
__construct() ¶
Construct object optionally with a set of 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> | [] | - |
getProperties() ¶
Function where list of properties are returned.
|
|
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>