getExpressionRuleProcessorElasticSearch()
getExpressionRuleProcessorElasticSearch(
serializers?:SQLSerializerRegistry):RuleProcessor
Defined in: expr/src/processors/getExpressionRuleProcessorElasticSearch.ts:54
Generates a rule processor with expression support for use by
formatQuery with the "elasticsearch" format.
Expression rules emit a Painless script filter ({ bool: { filter: { script: { script } } } }),
mirroring how the stock processor already scripts field-to-field comparisons. Supports
scalar comparisons and expression-sourced between/notBetween. Pass custom serializers
to add functions or override built-ins; they are merged over
defaultPainlessSerializers. Rules without expressions, or with an unsupported
operator, fall back to the stock processor.
Parameters
| Parameter | Type |
|---|---|
serializers? | SQLSerializerRegistry |
Returns
API documentation is generated from the latest commit on the main branch. It may be somewhat inconsistent with official releases of React Query Builder.