Limits on LindormSearch SQL syntax

Updated at:

LindormSearch supports a subset of SQL for querying search indexes. This page lists the supported conditional expressions and the constraints that apply.

Supported conditional expressions

The following operators and clauses are supported in queries.

ExpressionDescriptionExample
OR, ANDLogical operators for combining conditionsWHERE c1 = 'a' AND c2 > 10
LIKE, NOT LIKEWildcard pattern matching on string fieldsWHERE name LIKE 'ali%'
IS NULL, NOT NULLMatch columns with or without a valueWHERE c1 IS NULL
BETWEEN ... AND ...Inclusive range matchWHERE c1 BETWEEN 2 AND 4
=, >, <, >=, <=, <>Comparison operatorsWHERE c1 >= 10
IN, NOT INMatch against a set of valuesWHERE p2 IN ('a', 'b')
GROUP BYGroup rows sharing the same valueSELECT c1, Sum(c2) FROM dt WHERE p2 IN ('a', 'b') GROUP BY c1;
ORDER BYSort query results in ascending or descending orderSELECT * FROM dt WHERE p2 IN ('a', 'b') ORDER BY c1;
SELECT * FROM dt WHERE p2 IN ('a', 'b') ORDER BY c1 desc;

Limitations

Data Control Language is not supported

Data Control Language (DCL) is not supported.

Column value length limits

ScopeMaximum length
Single primary key column value2 KB
Total value length across all primary key columns30 KB
Single non-primary key column value2 MB

Expressions cannot be used inside aggregate functions

Expressions inside aggregate functions are not supported. For example, SUM(c1+1) is not supported.

Expressions are not supported in WHERE clauses

The WHERE clause does not support expressions. For example, WHERE (a*10) > 100 is not supported.

Only single-table queries are supported

JOIN clauses, subqueries, and UNION clauses are not supported. All queries must target a single table.