Oihana PHP Arango

BuiltinAnalyzer uses ConstantsTrait

Built-in (server-provided) ArangoSearch analyzer **names**.

Unlike AnalyzerType — which is the type discriminator used when creating an analyzer (identity, norm, stem, text) — these are the names of the stock analyzers ArangoDB ships out of the box, referenced when querying or linking:

The text_* set is fixed by ArangoDB; a custom analyzer created with Database::createAnalyzer() keeps a free-form name and is — by design — not covered here. Use self::includes() to tell a known built-in from a custom name.

Tags
example
use oihana\arango\clients\analyzer\enums\BuiltinAnalyzer;

Search::ANALYZER => BuiltinAnalyzer::TEXT_FR ; // instead of the magic string 'text_fr'

new ArangoSearchLink( analyzers : [ BuiltinAnalyzer::TEXT_EN ] ) ;
see
https://docs.arangodb.com/stable/index-and-search/analyzers/#built-in-analyzers
author

Marc Alcaraz (ekameleon)

since
1.2.0

Table of Contents

Constants

IDENTITY  : string = 'identity'
Pass-through analyzer — emits its input verbatim. Shares its name with the {@see AnalyzerType::IDENTITY} type and is always present server-side.
TEXT_DE  : string = 'text_de'
German full-text analyzer.
TEXT_EN  : string = 'text_en'
English full-text analyzer.
TEXT_ES  : string = 'text_es'
Spanish full-text analyzer.
TEXT_FI  : string = 'text_fi'
Finnish full-text analyzer.
TEXT_FR  : string = 'text_fr'
French full-text analyzer.
TEXT_IT  : string = 'text_it'
Italian full-text analyzer.
TEXT_NL  : string = 'text_nl'
Dutch full-text analyzer.
TEXT_NO  : string = 'text_no'
Norwegian full-text analyzer.
TEXT_PT  : string = 'text_pt'
Portuguese full-text analyzer.
TEXT_RU  : string = 'text_ru'
Russian full-text analyzer.
TEXT_SV  : string = 'text_sv'
Swedish full-text analyzer.
TEXT_ZH  : string = 'text_zh'
Chinese full-text analyzer.

Constants

IDENTITY

Pass-through analyzer — emits its input verbatim. Shares its name with the {@see AnalyzerType::IDENTITY} type and is always present server-side.

public string IDENTITY = 'identity'

TEXT_DE

German full-text analyzer.

public string TEXT_DE = 'text_de'

TEXT_EN

English full-text analyzer.

public string TEXT_EN = 'text_en'

TEXT_ES

Spanish full-text analyzer.

public string TEXT_ES = 'text_es'

TEXT_FI

Finnish full-text analyzer.

public string TEXT_FI = 'text_fi'

TEXT_FR

French full-text analyzer.

public string TEXT_FR = 'text_fr'

TEXT_IT

Italian full-text analyzer.

public string TEXT_IT = 'text_it'

TEXT_NO

Norwegian full-text analyzer.

public string TEXT_NO = 'text_no'

TEXT_PT

Portuguese full-text analyzer.

public string TEXT_PT = 'text_pt'

TEXT_RU

Russian full-text analyzer.

public string TEXT_RU = 'text_ru'

TEXT_SV

Swedish full-text analyzer.

public string TEXT_SV = 'text_sv'

TEXT_ZH

Chinese full-text analyzer.

public string TEXT_ZH = 'text_zh'
On this page

Search results