Skip to content

Allow for ranged negative and positive queries - #37

Open
jjatria wants to merge 1 commit into
petdance:devfrom
jjatria:undef
Open

Allow for ranged negative and positive queries#37
jjatria wants to merge 1 commit into
petdance:devfrom
jjatria:undef

Conversation

@jjatria

@jjatria jjatria commented Jun 19, 2018

Copy link
Copy Markdown

This patch adds the possibility to pass nested -range values to -prohibit and -require to make it possible to generate queries like -foo:[* TO *].

This can be used to match the absence of a value in a field.

Since this is also equivalent to querying for a null value, and considering the objective of keeping the syntax similar to SQL::Abstract, this also allows queries like { foo => undef } to be parsed and behave as expected.

Currently this behaviour is only implemented for these two operators because it wasn't clear whether it made sense for any of the others. But this could be extended in the future.

@jjatria jjatria changed the title Allow for ranged negative queries Allow for ranged negative and positive queries Jun 19, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant