nextcloud / nextcloud/files_fulltextsearch

Indexing for shared external local directory happens repeatedly, once for each user

Open
#256 0 comments 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
PHP
Stars
72
Forks
41
Avg merge
1d 3h
Merged PRs (30d)
9

Description

I have a common media (music/films/books etc.) library that I make available via an external local directory to all users (It's read-only, by the by). I notice when carrying out an occ fulltextsearch:index that this library (largish - about 6tb) gets repeatedly indexed each time a users private files are indexed. Seems suboptimal. Is there a way to have such common shared content indexed just the once?

Running Nextcloud Hub 6 (27.1.5) and Full text search - Files 27.0.1.

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 occ fulltextsearch:index entry point and trace how external local directories are selected for each user's indexing run. Determine how shared read-only content could be indexed once, then verify that repeated runs do not re-index the same directory while private files continue to be indexed.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
cli, search
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.