Skip to content

fix: ElasticSearch export - support multi-value operators using terms query#1305

Open
Oprysk wants to merge 1 commit intoukrbublik:masterfrom
Oprysk:fix/handle-multiple-values-elastic-search
Open

fix: ElasticSearch export - support multi-value operators using terms query#1305
Oprysk wants to merge 1 commit intoukrbublik:masterfrom
Oprysk:fix/handle-multiple-values-elastic-search

Conversation

@Oprysk
Copy link

@Oprysk Oprysk commented Jan 7, 2026

This PR fixes how ElasticSearch DSL is generated for operators that accept multiple
values for a single field (e.g. any in, multi-select contains).

Previously, multi-select values were expanded into multiple term queries.
This does not match ElasticSearch semantics and produces unnecessarily complex DSL.

The change uses the native terms query for such operators, which correctly
represents field membership and aligns with ElasticSearch / OpenSearch behavior.

Single-value operators and non-ElasticSearch formatters are not affected.

@codesandbox
Copy link

codesandbox bot commented Jan 7, 2026

Review or Edit in CodeSandbox

Open the branch in Web EditorVS CodeInsiders

Open Preview

@vercel
Copy link

vercel bot commented Jan 7, 2026

@Oprysk is attempting to deploy a commit to the Denys Oblohin's projects Team on Vercel.

A member of the Team first needs to authorize it.

@codesandbox-ci
Copy link

codesandbox-ci bot commented Jan 7, 2026

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 4171d12:

Sandbox Source
@react-awesome-query-builder/examples Configuration
@react-awesome-query-builder/sandbox Configuration
@react-awesome-query-builder/sandbox-simple Configuration
@react-awesome-query-builder/sandbox-next Configuration

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant