You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a complex query in the form: {{query (or (task DOING) (and (task TODO) (or [[Page 1]] [[Page 2]] [[Page 3]])))}}
which should filter all TODO tasks but instead it returns every task still in TODO
The query: {{query (or (task DOING) (and (task TODO) (or [[Page 1]])))}}
works as intended, the error only appears when there is two or more filters in the OR
Reproduce the Bug
Create a query in the form {{query (or (task DOING) (and (task TODO) (or [[Page 1]])))}}
Verify that it works as intended
Extend the final or with more pages e.g. {{query (or (task DOING) (and (task TODO) (or [[Page 1]] [[Page 2]] [[Page 3]])))}}
Verify that instead of only adding more TODO items that match the additional pages, all items in TODO are added to the query result
Expected Behavior
For a query such as: {{query (or (task DOING) (and (task TODO) (or [[Page 1]] [[Page 2]] [[Page 3]])))}}
the only items in TODO that are returned contain references to pages [[Page 1]], [[Page 2]] or [[Page 3]]
Screenshots
Erroneous query:
Equivalent query with correct filtering:
Search first
What Happened?
I have a complex query in the form:
{{query (or (task DOING) (and (task TODO) (or [[Page 1]] [[Page 2]] [[Page 3]])))}}which should filter all TODO tasks but instead it returns every task still in TODO
The query:
{{query (or (task DOING) (and (task TODO) (or [[Page 1]])))}}works as intended, the error only appears when there is two or more filters in the OR
Reproduce the Bug
{{query (or (task DOING) (and (task TODO) (or [[Page 1]])))}}{{query (or (task DOING) (and (task TODO) (or [[Page 1]] [[Page 2]] [[Page 3]])))}}Expected Behavior
For a query such as:
{{query (or (task DOING) (and (task TODO) (or [[Page 1]] [[Page 2]] [[Page 3]])))}}the only items in TODO that are returned contain references to pages [[Page 1]], [[Page 2]] or [[Page 3]]
Screenshots
Erroneous query:


Equivalent query with correct filtering:
Desktop or Mobile Platform Information
App Version: 0.10.15
Git Revision: 03bcefb
Platform: Mozilla/5.0 (Windows NT 10.0 Win64 x64) AppleWebKit/537.36 (KHTML like Gecko) Logseq/0.10.15 Chrome/140.0.7339.240 Electron/38.4.0 Safari/537.36
Language: en-US
Plugins:
Additional Context
I didn't see any bug reports that mirror this exactly but these two might be a related issue:
Are you willing to submit a PR? If you know how to fix the bug.