Oihana PHP Arango

SearchFunction uses FunctionCallTrait

ArangoSearch-specific AQL functions: context (analyzer/boost), filtering, scoring and search highlighting. These functions are meant to be used inside a `SEARCH` operation against a View (or a `FILTER` backed by an inverted index).

Functions that also exist outside of SEARCH keep their original enum: MIN_MATCH and IN_RANGE live in MiscFunction, STARTS_WITH, TOKENS and LIKE in StringFunction.

Tags
see
https://docs.arangodb.com/stable/aql/functions/arangosearch/

Table of Contents

Constants

ANALYZER  : string = 'ANALYZER'
Set the Analyzer for the wrapped search expression (and its nested functions).
BM25  : string = 'BM25'
Score documents with the Best Matching 25 algorithm (Okapi BM25).
BOOST  : string = 'BOOST'
Override the boost value of the wrapped search expression for scorer functions.
EXISTS  : string = 'EXISTS'
Match documents where an attribute is present (optionally of a given type, indexed by a given Analyzer, or indexed as a nested field).
LEVENSHTEIN_MATCH  : string = 'LEVENSHTEIN_MATCH'
Match documents within a (Damerau-)Levenshtein distance of a target string.
MINHASH_MATCH  : string = 'MINHASH_MATCH'
Match documents with an approximate Jaccard similarity (MinHash Analyzer).
NGRAM_MATCH  : string = 'NGRAM_MATCH'
Match documents whose attribute has an n-gram similarity above a threshold.
OFFSET_INFO  : string = 'OFFSET_INFO'
Return match offsets for search highlighting (requires the `offset` Analyzer feature).
PHRASE  : string = 'PHRASE'
Match documents containing a phrase (tokens in the given order, with optional wildcards).
TFIDF  : string = 'TFIDF'
Score documents with the term frequency–inverse document frequency algorithm (TF-IDF).

Constants

On this page

Search results