nextcloud / nextcloud/fulltextsearch

`occ fulltextsearch:index` gets stuck on file names that contain emoji

Open
#925 2 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

How to use GitHub
  • Please use the 👍 reaction to show that you are affected by the same issue.
  • 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.

Steps to reproduce
  1. Run occ fulltextsearch:index
  2. Wait for it to hit a filename containing emoji.
Expected behaviour

That it wouldn't get stuck on file names that contain emoji.

Actual behaviour

Gets stuck on file names containing emoji. This is a problem when a lot of Markdown editors for keeping notes tend to involve emojis in the file names so that navigating notes is more efficient to parse by symbol instead of a big list of words.

Image
Server configuration

Web server: Nginx

Database: PostgreSQL

PHP version: 8.3

Nextcloud version: 31.0.9

Browser

Browser name: Firefox/Chrome/Safari/…

Browser version: 124/125/…

Operating system: Windows/Ubuntu/Mac/…

Browser log
Insert your browser log here, this could for example include:
a) The javascript console log
b) The network log
c) ...

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 running occ fulltextsearch:index against a file whose name contains emoji and inspect where indexing stops. Trace the full-text search indexing path from that command; done means the index completes without getting stuck on emoji-containing filenames.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.