Update index creation documentation with correct settings for NextCloud

This commit is contained in:
Andreas Düren
2025-03-16 19:38:55 +01:00
parent 065b950292
commit bc3fb33125
2 changed files with 24 additions and 1 deletions

View File

@@ -46,6 +46,29 @@ Example connection using cURL:
curl -u elastic:<password> http://localhost:9200
```
### Setting up Indices
**Important:** Before using Elasticsearch with apps like NextCloud, you need to create the necessary indices.
For NextCloud FullTextSearch:
```bash
# Replace with your actual Elasticsearch IP address and password
curl -X PUT "http://elastic:PASSWORD@IPADDRESS:9200/nextcloud" -H 'Content-Type: application/json' -d'
{
"settings": {
"index": {
"number_of_shards": 1,
"number_of_replicas": 0,
"refresh_interval": "10s"
}
}
}
'
```
You can get the IP address from the Cloudron admin panel or by using the `cloudron status` command. The password is stored in `/app/data/credentials.txt`.
## Security Notes
- HTTP SSL is disabled for compatibility with most client applications