nextcloud / nextcloud/server

Possibility to search system tags with a better query system

Open
#4,851 19 comments 23 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

1. to develop enhancement feature: search feature: tags
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.
andnot

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.