Skip to main content

Add OR operator support to Search filter

Description

Extend the existing Search filter to support the logical OR operator in addition to the currently supported AND behavior.

Currently, multiple search conditions are effectively combined using AND logic, which prevents users from searching for alternative values within the same query.

Example:

"заперечення виявлено: true" OR "заперечення виявлено: false"

At the moment, this query returns 0 conversations.

Current Behavior

The Search filter applies AND logic between search conditions.

As a result, queries containing alternative conditions cannot return conversations matching either value.

Expected Behavior

Users should be able to use the logical OR operator in the Search filter.

For example:

"заперечення виявлено: true" OR "заперечення виявлено: false"

should return conversations containing either:

  • заперечення виявлено: true

  • заперечення виявлено: false

Existing AND behavior should remain available.

Required Changes

  • Add support for the OR logical operator in Search queries.

  • Preserve the existing AND search behavior.

  • Ensure OR can be used with multiple search expressions.

Acceptance Criteria

  1. Search supports the OR operator between search expressions.

  2. OR returns conversations matching at least one of the provided conditions.

  3. Existing AND search behavior remains unchanged.

Log in to comment and vote

No comments yet

Be the first to share your thoughts.