nextcloud / nextcloud/server

Add multiple tag search to unified search

Open
#37,302 2 comments 14 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

0. Needs triage enhancement feature: search feature: tags
Dominant language
PHP
Stars
36.9k
Forks
5.2k
Avg merge
2d 3h
Merged PRs (30d)
713

Description

How to use GitHub
  • Please use the 👍 reaction to show that you are interested into the same feature.
  • Please don't comment if you have no relevant information to add. It's just extra noise for everyone subscribed to this issue.
  • Subscribe to receive notifications on status change and new comments.

Is your feature request related to a problem? Please describe.
I organize my files by tags. It is possible to use the unified search to find files that have a certain tag. I can, for example, search for "receipt" and get all files with the tag receipt. But if I want to search for files tagged with receipt and clothes, I can't use the unified search. Entering "receipt clothes" doesn't work. I have to go to https://nextcloud.example.com/apps/files/?dir=/&view=systemtagsfilter and enter them there to do that.

Describe the solution you'd like
Add the possibility to search for multiple tags to the unified search. I am not sure yet how this could best be done, as, as far as I know, unified search currently doesn't use space as a delimiter of search terms but always matches to the whole string. But maybe this paradigm could be changed? Alternatively, maybe auto-suggest for tags could be added?

Describe alternatives you've considered
None

Additional context
None.

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

Start by tracing the unified search implementation and the existing files tag-filter flow referenced by the /apps/files/?dir=/&view=systemtagsfilter URL; no source files or tests are named in the issue. Define the supported multi-tag query behavior and verify that unified search returns files matching the requested tags.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
search
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.