Commands

Maxence Lange edited this page Aug 28, 2018 · 7 revisions

fulltextsearch:test

This command while test the setup of your search platform by

  • generating fake documents,
  • indexing those documents,
  • checking the content of those document in the search platform,
  • searching for keywords and compare results,
  • searching for keywords and access rights and compare results:

Default syntax:

 ./occ fulltextsearch:test

The platform_delay options will define the delay between indexing and search (default 3)

 ./occ fulltextsearch:test --platform_delay 30

./occ fulltextsearch:test

fulltextsearch:index

This is the main command of the app, which is used to index your content. You will need to use this command to index your files at least once.

To start your first index:

./occ fulltextsearch:index

Options can be pushed using JSON:

  • user/users: user/array of users that will be indexed.
  • provider/providers: provider/array of providers that will be used to retrieve content of the Nextcloud.
  • path: location, can be a file or a folder. Used by the Files content provider only. Limit the index to the files from this location. If the file or folder does not exist, the index will be over.
  • paused: true/false. If set to true, index will start paused.
./occ fulltextsearch:index "{\"user\": \"cult\", \"providers\":[\"files\", \"test\"]}"

./occ fulltextsearch:index

The interface is interactive to help you check the result and manage the errors that can occurs during the indexing.

./occ fulltextsearch:stop

Because some indexing will be run as a background process, and to avoid conflict, you will need to stop others indexing process.

./occ fulltextsearch:reset

Remove the index from the search platform.

./occ fulltextsearch:live

If you don't want to wait for the next tick of the cron, run this process in a screen.

You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.