Full Text Search NextCloud App(s)
Overview
This document provides information about the NextCloud Full Text Search App(s) and a step-by-step plan how to set this up on your local machine with the use of ElasticSearch as search platform.
Local Setup Steps
-
Open a command-line interface (CLI), such as:
- Windows: Command Prompt (
cmd), PowerShell, or Windows Terminal. - Linux/macOS: Terminal.
- Windows: Command Prompt (
-
Navigate to your local Nextcloud repository (where a docker-compose.yml file is present):
cd {route to your local NC repo} -
Start the necessary Docker containers:
docker-compose up nextcloud proxy elasticsearch -
In the Nextcloud front-end, go to NC Apps > Search and install the following three apps:
- Full text search Files
- Full text search Elastic
- Full text search
-
Under Administrator settings, go to Full text search in the sidebar.
-
Under General, configure the following:
- Search Platform: Set to "Elasticsearch".
- Navigation Icon: Check this option.
-
Under Elastic Search, set the following:
- Address of the Servlet:
http://elastic:elastic@elasticsearch:9200 - Index:
my_index - [Advanced] Analyzer tokenizer:
standard
- Address of the Servlet:
-
Under Files, configure the following
- Check all checkboxes:
- Local Files
- Group Folders
- Extract PDF
- Extract Office & Open Files
- Maximum file size: Set your prefered maximum file size (at least 64 is recommended).
- Check all checkboxes:
-
Add some files to Nextcloud in the Files tab of NextCloud.
-
Run the indexing command in the
master-nextcloud-1container in Docker Desktop:sudo -u www-data php ./occ fulltextsearch:index -
Open the search app and search for files based on the text inside them.
More Information
If you need more details or troubleshooting help, you can refer to the following resources:
- Nextcloud Full Text Search Wiki - Basic Installation
- Nextcloud Docker Development - Full Text Search
- YouTube Guide on Full Text Search for Nextcloud
These resources provide in-depth explanations, configurations, and troubleshooting tips.
Related Documentation
- Solr Setup and Configuration - OpenRegister's Solr integration
- Text Extraction Implementation - File text extraction