Skip to main content
String functions operate on text values in your query results. Each function is available as both a Fluent API method and a FQL keyword.

Reference

Examples

SUBSTRING and SUBSTR are aliases — both accept (field, start, length) and produce identical results.
The MATCH...AGAINST construct computes a relevance score for one or more text fields against a search query. The result is a floating-point score you can filter and sort on.

Modes

Fields listed earlier in the MATCH argument list receive a higher weight than later fields.

Hashing functions

Hashing functions produce a fixed-length digest from a field value. They are available alongside string functions in the Fluent API.
Hashing functions are one-way — they cannot be reversed. Do not use them to store passwords; use a proper password-hashing library instead.