fecgov / fec-cms

The content management system (CMS) for the new Federal Election Commission website.
https://www.fec.gov
Other
92 stars 38 forks source link

Update bool operator syntax for Elasticsearch simple_query_string #6360

Open patphongs opened 2 weeks ago

patphongs commented 2 weeks ago

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

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

Transformed

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

Related issues

List any relevant related issue(s)

Completion criteria