nextcloud / nextcloud/fulltextsearch

How to enable Elasticsearch to all the users (including non admin)

Open
#751 6 comments 0 reactions 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

Fresh install Nextcloud from 26.0.0 to 26.0.2 with Elasticsearch Version: 8.7.1.
All work well for the first 2 users with admin role.

Started to create few new users without admin role and discovered the UI search has no any result return.
Issue the following command to double confirm but still the same result.

sudo -u www-data php occ fulltextsearch:search "userxxx" xxxxxxx
search
Deck
Files

In the command of php occ filetextsearh:live, the elasticsearch seems to perform the indexing but always status is waiting
image
image

Kindly advise is the elasticsearch to allow install in Nextcloud only limit for certain number of users or any settings need to be applied. Thanks.

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 with the reported occ fulltextsearch:search and occ fulltextsearch:live commands, comparing results and indexing status for admin and non-admin users. Trace the Elasticsearch search and indexing behavior for those user roles; done means non-admin users receive expected search results and live indexing no longer remains waiting.

Written by the indexing model from the issue text.

Assessment

Tech stack
elasticsearch, php
Domain
backend, search
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.