Skip to content

Built-in Functions Reference

elastic-script provides a comprehensive library of built-in functions organized by category.

Categories

Total: 100 functions across 8 categories

Category Functions Description
ARRAY 18 Array/list operations and transformations
DATASOURCE 16
DATE 16 Date and time operations
DOCUMENT 6 Document/object manipulation
NETWORK 5
NLP 10
NUMBER 11 Mathematical and numeric operations
STRING 18 String manipulation and formatting

Usage

Functions can be called from anywhere in elastic-script:

-- In expressions
DECLARE result STRING = UPPER('hello');

-- In SET statements
SET total = ARRAY_LENGTH(items);

-- In conditions
IF LENGTH(name) > 10 THEN
    PRINT 'Long name';
END IF;

See Also