Initial commit.

This commit is contained in:
jon
2021-09-25 12:52:05 -05:00
commit 3c217ae3fe
7 changed files with 118 additions and 0 deletions

37
README.md Normal file
View File

@@ -0,0 +1,37 @@
= Nextcloud with OCR and Elasticsearch for Full-Text Searching
To get elasticsearch to run, you'll need to run this on the host:
sysctl -w vm.max_map_count=262144
You can build and start all three containers (nextcloud, db and elasticsearch) with:
$docker-compose up
Go to: http://[host]:9900/
Make up user/pass, I uncheck installing the additional apps at the bottom
Disable dashboard under user > settings
== OCR
1. go into settings > basic settings > set cron
1. install apps (workflow ocr)
1. create flow:
2. add new ocr flow
2. when: file created
2. file mime type > is > pdf document
2. (USE IS AND NOT MATCHES!!!)
== Full text
1. Install apps (full text, full text elastic, full text - files)
1. To to Settings > Full Text Search
1. Configure settings appropriately. Address is: http://user:pass@elasticsearch:9200/
1. Now you have to run the fulltextsearch index manually one time
2. shell into container, enable www-data account (chsh)
2. go to /var/www/html and run: php occ fulltextsearch:index
2. disable www-data account (chsh back to nologin)