airr-community / airr-standards

AIRR Community Data Standards
https://docs.airr-community.org
Creative Commons Attribution 4.0 International
35 stars 23 forks source link

Missing details in specification for queries against arrays #609

Open bussec opened 2 years ago

bussec commented 2 years ago

The ADC API documentation states in the "Queries Against Arrays" subsection that "[for] operators such as = and in, the filter behaves like the Boolean OR over the array entries, that is if any array entry evaluates to true then the query filter is satisfied. For operators such as != and exclude, the filter behaves like the Boolean AND over the array entries, that is all array entries must evaluate to true for the query filter to be satisfied."

However, there is no complete enumeration of all operators that need to be supported for queries against arrays and it is not clearly specified how the individual operators are expected to behave, which is non-obvious, e.g., for greater-than and lesser-than.

@schristley @bcorrie any insights on this?

schristley commented 2 years ago

The logic is meant to follow how the operators work in MongoDB. The MongoDB doc is not very thorough though.

bcorrie commented 6 months ago

Changing this to v2.1 - related to #623