Possibility to search system tags with a better query system
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 36.9k
- Forks
- 5.2k
- Avg merge
- 2d 3h
- Merged PRs (30d)
- 713
Description
It would be really useful to have the possibility to search not only for tag A AND tag B but also for tag A AND NOT tag B, or tag A OR tag B
I would value especially tag A AND NOT tag B.
Some use cases:
- All the documents about client X and not about contracts
- All the photos about family and not about private
I was thinking that even a"simple" change in the interface would be a big improvement.

My hypothesis of how to make it work would be:
- automatic focus on "Select tags to filter by" as now
- start to search when the first tag in "... filter by" field is selected
- allow to fill "... to exclude" even if "... filter by" is empty, yet do NOT start to search if "... filter by" is empty
This feature should take into account #2143, which is already part of #4699 and scheduled for Nextcloud 13
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No files or tests are named. Start by reading the requirements here alongside #2143 and #4699, then trace the existing system-tag filter interface and query behavior. Done means supporting tag A AND NOT tag B and tag A OR tag B, including the stated empty-filter behavior and document/photo use cases.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, php
- Domain
- frontend, search
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100