nextcloud / nextcloud/fulltextsearch

Allow index by path on CLI

Open
#611 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Is it possible to implemet a feature to allow indexing on command line by path?

occ fulltextsearch:index will index all files.

Something like
occ fulltextsearch:index --path my/own/path
would be good to quickly index some folders that have a higher priority as other ones.

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 at the occ fulltextsearch:index command entry point and trace how it currently selects files for indexing. Define the expected behavior for --path my/own/path, including whether the path is relative or absolute, then verify that invoking the command indexes only the requested folder while the existing no-argument behavior remains unchanged.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
cli, search
Issue type
Feature
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.