Complete documentation for all FLEX (FalkorDB Library for EXtensions) functions.
All function documentation follows a standard template with the following sections:
- Description
- Syntax
- Parameters
- Returns
- Examples (with practical use cases)
- Notes
- See Also (related functions)
Set similarity metrics for fuzzy matching and comparison.
| Function | Description |
|---|---|
| sim.jaccard | Calculate Jaccard similarity coefficient between sets |
String manipulation, formatting, case conversion utilities, and string similarity metrics.
| Function | Description |
|---|---|
| text.capitalize | Capitalize the first character of a string |
| text.decapitalize | Lowercase the first character of a string |
| text.swapCase | Swap the case of all characters in a string |
| text.camelCase | Convert string to camelCase format |
| text.upperCamelCase | Convert string to UpperCamelCase (PascalCase) |
| text.snakeCase | Convert string to snake_case format |
| text.format | Format string with placeholder substitution |
| text.indexOf | Find first occurrence of substring |
| text.indexesOf | Find all occurrences of substring |
| text.join | Join array elements with delimiter |
| text.lpad | Pad string on the left to target length |
| text.rpad | Pad string on the right to target length |
| text.regexGroups | Extract regex matches and capture groups |
| text.repeat | Repeat string multiple times |
| text.replace | Replace text using regex pattern |
| text.jaroWinkler | Compute Jaro-Winkler similarity for short strings |
| text.levenshtein | Compute Levenshtein edit distance between strings |
Operations on lists and arrays including set operations and transformations.
| Function | Description |
|---|---|
| coll.zip | Combine two lists element-by-element into pairs |
| coll.union | Combine lists and return unique elements |
| coll.intersection | Find common elements between lists |
| coll.shuffle | Randomly shuffle list elements |
| coll.frequencies | Count frequency of each element in list |
Map/object manipulation for property management and transformation.
| Function | Description |
|---|---|
| map.merge | Shallow merge multiple maps |
| map.fromPairs | Convert list of key-value pairs to map |
| map.submap | Extract subset of keys from map |
| map.removeKey | Remove single key from map |
| map.removeKeys | Remove multiple keys from map |
JSON serialization and parsing utilities.
| Function | Description |
|---|---|
| json.toJson | Serialize value to JSON string |
| json.fromJsonMap | Parse JSON string to map |
| json.fromJsonList | Parse JSON string to list |
Date and time manipulation, formatting, and parsing.
| Function | Description |
|---|---|
| date.format | Format date/time with pattern and timezone |
| date.parse | Parse date/time string with optional pattern |
| date.truncate | Truncate date to specific unit (day, month, etc.) |
| date.toTimeZone | Convert date to timezone offset |
Low-level bitwise operations on integers.
| Function | Description |
|---|---|
| bitwise.and | Bitwise AND operation |
| bitwise.or | Bitwise OR operation |
| bitwise.xor | Bitwise XOR (exclusive OR) operation |
| bitwise.not | Bitwise NOT (one's complement) operation |
| bitwise.shiftLeft | Left bit shift operation |
| bitwise.shiftRight | Right bit shift with sign extension |
text.camelCase,text.snakeCase- Normalize field namestext.replace- Remove or sanitize unwanted characterscoll.union- Deduplicate lists
text.levenshtein- Find similar strings with edit distancetext.jaroWinkler- Match names and short stringssim.jaccard- Compare sets and tag similarity
date.truncate- Group by time periodscoll.frequencies- Count occurrencesmap.submap- Select relevant fields
json.toJson,json.fromJsonMap- JSON serializationmap.removeKeys- Filter sensitive datatext.format- Build formatted messages
bitwise.and,bitwise.or- Check and set permission flagsbitwise.xor- Toggle flags
When adding new functions, please:
- Follow the standard template
- Include practical examples with expected output
- Document edge cases and null handling
- Add "See Also" references to related functions
- Update this index with the new function
This documentation is for FLEX v1.0.0+
For more information, see the main README.