Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New: occ search:index:fillSecondary RelevanceV2 <user> #1019

Closed
mmattel opened this issue Jul 6, 2023 · 4 comments · Fixed by #1115
Closed

New: occ search:index:fillSecondary RelevanceV2 <user> #1019

mmattel opened this issue Jul 6, 2023 · 4 comments · Fixed by #1115

Comments

@mmattel
Copy link
Contributor

mmattel commented Jul 6, 2023

References:
owncloud/search_elastic#319 (Refactor connector)
owncloud/search_elastic#331 ([QA] too many matches for fluxcompensator)

A new occ command needs to be added to the occ command set.

@mmattel
Copy link
Contributor Author

mmattel commented Aug 31, 2023

sudo -uwww-data ./occ search:index:fillSecondary --help

Description:
  Fill a secondary index based on the indexed data we have. Files not matching the "indexed" status will be ignored This is intended to be used in data migrations, so the connector for this secondary index should have been configured as "write connector"

Usage:
  search:index:fillSecondary [options] [--] <connector_name> <user_id>...

Arguments:
  connector_name             The name of the connector.
  user_id                    Provide a userId. This argument is required.

Options:
  -q, --quiet                Do not output any message
  -f, --force                Use this option to fill the secondary index without further questions.
      --startOver            Start indexing from the beginning, not from a previous savepoint.
      --chunkSize=CHUNKSIZE  The savepoint will be updated after processing this number of files. [default: "100"]

@mmattel
Copy link
Contributor Author

mmattel commented Aug 31, 2023

sudo -uwww-data ./occ search:index:rebuild --help

Description:
  Rebuild the indexes for a given User. All the indexes associated with the configured connectors will be rebuilt. This won't apply any change to the configuration of the index if it's already setup but it will setup any index that hasn't been setup yet Check "search:index:reset" to reset all the indexes associated to the configured connectors

Usage:
  search:index:rebuild [options] [--] <user_id>...

Arguments:
  user_id               Provide a userId. This argument is required.

Options:
  -q, --quiet           Do not output any message
  -f, --force           Use this option to rebuild the search index without further questions.

@mmattel
Copy link
Contributor Author

mmattel commented Aug 31, 2023

sudo -uwww-data ./occ search:index:update --help

Description:
  Update the indexes by running all pending background jobs.

Usage:
  search:index:update [options]

@mmattel
Copy link
Contributor Author

mmattel commented Aug 31, 2023

sudo -uwww-data ./occ search:index:reset --help

Description:
  Reset all the configured indexes. Changes in the configuration of the indexes associated to the configured connectors will take place. All the data in those indexes will be removed, so you'll need to rebuild the indexes, usually with "search:index:rebuild"

Usage:
  search:index:reset [options]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant