Plugin functions
You can use plugin functions in the `filter` clause to filter data. You can also use functions that return a numeric value in the `sort` clause to sort data.
If you use a document field as a function parameter, you must create the field as an index or a property as specified in the function's documentation.
fieldlen: Get the length of a literal field
1. Usage details:
fieldlen(field_name)
2. Parameters:
field_name: The name of the field to evaluate. The field can be a literal or an array.
3. Return value:
Returns the length of the field content as an int64 integer. If the field is an array, the function returns the number of array elements.
4. Scenarios:
Scenario 1: Return documents where the usr_name field is not empty.
query=default:'keyword'&&filter=fieldlen(usr_name)>05. Notes:
The field specified as a parameter must be created as a property.