nextcloud / nextcloud/fulltextsearch

fulltext search wrong link in search results of tags

Open
#879 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
PHP
Stars
234
Forks
64
Avg merge
6h 18m
Merged PRs (30d)
10

Description

Hello. I have assigned tags to some files. The elasticsearch full-text search index was also created. When I search, the full-text search finds these labels and each individual file corresponding to the label opens normally. However, if you select the option to open all files corresponding to the tag, then the tag folder is incorrectly opened.

Here’s what it means: if you open the labels manually in the files section, they look like https://site.com/apps/files/tags/1?dir=/1 and if you open it from the search results, then a folder (naturally empty) of the form is hidden https://site.com/apps/files/tags?dir=1.

A few images to illustrate the problem:

Image

Image

Image

Image

Image

Image

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 how Elasticsearch search results generate links for tags and compare that route with the files section's tag URL. Reproduce the issue with tagged files and the full-text index, then verify that opening all files uses the tag path with the tag ID and directory query shown in the report.

Written by the indexing model from the issue text.

Assessment

Tech stack
elasticsearch, php
Domain
search
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.