Skip to content

Hydrus | OR query handling#382

Open
ekatn wants to merge 1 commit intoNO-ob:masterfrom
ekatn:patch-2
Open

Hydrus | OR query handling#382
ekatn wants to merge 1 commit intoNO-ob:masterfrom
ekatn:patch-2

Conversation

@ekatn
Copy link
Copy Markdown
Contributor

@ekatn ekatn commented Apr 18, 2026

introduces OR queries into hydrus' handler.

query: system:archive, tag1 OR tag2, tag3

what previously GETs:
["system:archive", "tag1", "OR", "tag2", "tag3"]

now GETs:
["system:archive", ["tag1", "tag2"], "tag3"]

'OR' is used over '~' in hydrus' client, and as such, is mirrored here. this also allows for multiple nested OR searches, like:

system:archive, tag1 OR tag2 OR tag3, tag4, tag5 OR tag6
returning...
["system:archive", ["tag1", "tag2", "tag3"], "tag4", ["tag5", "tag6"]]

introduces OR queries into hydrus' handler.

query: system:archive, tag1 OR tag2, tag3

what previously GETs:
["system:archive", "tag1",  "OR", "tag2", "tag3"]

now GETs:
["system:archive", ["tag1", "tag2"], "tag3"]

'OR' is used over '~' in hydrus' client, and as such, is mirrored here. this also allows for multiple nested OR searches, like:

system:archive, tag1 OR tag2 OR tag3, tag4
returning...
["system:archive", ["tag1", "tag2", "tag3"], "tag4", ["tag5", "tag6"]]
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