[FOLIO-454] CQL2PgJSON: resolve ambiguous field names Created: 02/Feb/17  Updated: 18/Jan/19

Status: Open
Project: FOLIO
Components: None
Affects versions: None
Fix versions: None

Type: New Feature Priority: P3
Reporter: Julian Ladisch Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original estimate: Not Specified

Issue links:
Relates
relates to FOLIO-420 CQL2PgJSON: check index field name Closed
Sprint:
Development Team: Core: Platform

 Description   

A cql query like `zip=4202` may be ambiguous when there are two such fields like address.home.zip and address.work.zip.

There are several possibilities how to resolve this:

  • Take the first one (higher level, or alphabethical when same level: address.zip < adress.home.zip < address.work.zip)
  • Take all of them using OR search.
  • Throw an Exception.

Using indexes as suggested in DMOD-144 may resolve the ambiguity.

The requirements might be different for cql entered by some user in a search slot and cql generated by some source code.


Generated at Thu Feb 08 23:05:54 UTC 2024 using Jira 1001.0.0-SNAPSHOT#100246-sha1:7a5c50119eb0633d306e14180817ddef5e80c75d.