nextcloud / nextcloud/fulltextsearch
fulltext search wrong link in search results of tags
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:
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
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