Compare commits

..

1 Commits

Author SHA1 Message Date
4779217f02 feat: add fulltextsearch using elasticsearch
Some checks failed
continuous-integration/drone/pr Build is failing
2023-12-19 16:57:33 +01:00
3 changed files with 6 additions and 6 deletions

View File

@ -63,5 +63,5 @@ DEFAULT_QUOTA="10 GB"
# SECRET_AUTHENTIK_SECRET_VERSION=v1
# SECRET_AUTHENTIK_ID_VERSION=v1
#COMPOSE_FILE="$COMPOSE_FILE:compose.elasticsearch.yml"
#COMPOSE_FILE="$COMPOSE_FILE:compose.fulltextsearch.yml"
#SECRET_ELASTICSEARCH_PASSWORD_VERSION=v1

View File

@ -258,23 +258,22 @@ This app will improve performance of image browsing at the cost of storage space
abra app secret generate <domain> elasticsearch_password v1
```
4. Deploy your app:
3. Deploy your app:
```bash
abra app deploy <domain>
```
5. Install the apps and configure them:
4. Install the apps and configure them:
```
abra app cmd <domain> app install_fulltextsearch
```
6. You might need to configure the files_fulltextsearch app. run this command to check its settings:
5. You might need to configure the files_fulltextsearch app. run this command to check its settings:
```
abra app cmd <domain> app run_occ '"config:list files_fulltextsearch"
```
7. You can check if the nextcloud can connect to elasticsearch:
6. You can check if the nextcloud can connect to elasticsearch:
```
abra app cmd <domain> app run_occ '"fulltextsearch:test"'
```

View File

@ -77,6 +77,7 @@ install_fulltextsearch() {
set_app_config fulltextsearch search_platform "OCA\\FullTextSearch_Elasticsearch\\Platform\\ElasticSearchPlatform"
set_app_config fulltextsearch_elasticsearch elastic_host "http://elastic:$(cat /run/secrets/elasticsearch_password)@elasticsearch:9200/"
set_app_config fulltextsearch_elasticsearch elastic_index "nextcloud"
set_app_config files_fulltextsearch files_local "1"
}
set_default_quota() {