Oihana PHP Arango

ArangoSearchAliasViewsTrait

The database-level registry of declared `search-alias` views, consumed by the `arango:views` action of `command:arangodb` — the federated counterpart of {@see ArangoAnalyzersTrait}.

Unlike an arangosearch view (owned by a single model), a search-alias view aggregates one inverted index across several collections, so it belongs to no single model and is declared once here. Supplied via the searchAliasViews init key (ArangoCommandParam::SEARCH_ALIAS_VIEWS).

The registry is a flat list of SearchAliasView. As a convenience a single SearchAliasView is tolerated in place of a one-element list — getSearchAliasViews() normalizes it.

Tags
author

Marc Alcaraz (ekameleon)

since
1.3.0

Table of Contents

Properties

$searchAliasViews  : array<int, SearchAliasView>|SearchAliasView
The declared search-alias views — a list of {@see SearchAliasView} (a single one is tolerated in place of a one-element list).

Methods

getSearchAliasViews()  : array<int, SearchAliasView>
Returns the declared search-alias views normalized to a flat {@see SearchAliasView} list: a lone `SearchAliasView` becomes a one-element list, and any entry that is not a `SearchAliasView` is dropped (defensive against a malformed declaration).

Properties

Methods

getSearchAliasViews()

Returns the declared search-alias views normalized to a flat {@see SearchAliasView} list: a lone `SearchAliasView` becomes a one-element list, and any entry that is not a `SearchAliasView` is dropped (defensive against a malformed declaration).

public getSearchAliasViews() : array<int, SearchAliasView>
Return values
array<int, SearchAliasView>
On this page

Search results