Skip to content

Update bool operator syntax for Elasticsearch simple_query_string and excludes #6360

@patphongs

Description

@patphongs

Summary

What we're after:
We are considering updating our the way we parse and execute query strings by switching from query_string to simple_query_string in the API. With this change will require the CMS app to update how we are passing the API call through.

Syntax update

Current UI

((coordinated OR communications) OR (in-kind AND contributions) OR ("independent expenditure")) AND (-travel -authorization)

Web UI update

(coordinated | communications)|(in-kind + contributions)|("independent expenditure") -travel -authorization

API query transformation

q=((coordinated|communications)|(in-kind+%2bcontributions)|("independent+expenditure"))&q_exclude=(travel+authorization)

Related issues

List any relevant related issue(s)

Completion criteria

  • Query string operator syntax is transformed according to syntax update

Metadata

Metadata

Assignees

Type

No type

Projects

Status

✅ Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions