fulltextsearch_elasticsearch
fulltextsearch_elasticsearch copied to clipboard
Elasticsearch and Docker Unknow error
Bonjour, 👋🏻
All with docker. Nextcloud: 28.0.3 Elasticsearch: 8.6.1
When I run index manually. (I use this way in background: https://fariszr.com/en/nextcloud-fulltextsearch-elasticsearch-docker-setup/)
Memory: 67 MB
┌─ Indexing ────
│ Action: indexDocument
│ Provider: Files Account: ********
│ Document: 3327
│ Info: httpd/unix-directory
│ Title: ****
│ Content size: 0
│ Chunk: 18/18
│ Progress: all/79
└──
┌─ Results ────
│ Result: 214/214
│ Index: files:3327
│ Status: ok
│ Message: {"_index":"index","_id":"files:3327","_version":3,"result":"updated","_shards":{"total":2,"successful":1,"failed":0},"_
│ seq_no":166774,"_primary_term":45}
│
└──
┌─ Errors ────
│ Error: 50/50
│ Index: files:60850
│ Exception: Elastic\Elasticsearch\Exception\ClientResponseException
│ Message: unknown error
│
│
└──
When I try a test.
root@f6a892cce644:/var/www/html# su -s /bin/sh www-data -c 'php occ fulltextsearch:test'
.Testing your current setup:
Creating mocked content provider. ok
Testing mocked provider: get indexable documents. (2 items) ok
Loading search platform. (Elasticsearch) ok
Testing search platform. ok
Locking process ok
Removing test. ok
Pausing 3 seconds 1 2 3 ok
Initializing index mapping. ok
Indexing generated documents. ok
Pausing 3 seconds 1 2 3 ok
Retreiving content from a big index (license). (size: 32386) ok
Comparing document with source. ok
Searching basic keywords:
- 'test' (result: 0, expected: ["simple"]) fail
Error detected, unlocking process ok
In Test.php line 676:
Unexpected SearchResult: {"provider":{"id":"test_provider","name":"Test Provider"},"platform":{"id":"elastic_search","name":"El
asticsearch"},"documents":[],"info":[],"meta":{"timedOut":false,"time":1,"count":0,"total":0,"maxScore":0}}
fulltextsearch:test [--output [OUTPUT]] [-j|--json] [-d|--platform_delay PLATFORM_DELAY]
In Nextcloudweb interface I type any word and I have no result...
Thanks
This is an issue with your elastic search server configuration. It needs to be accessible to the client as well. You can setup http basic auth in front of it and just type in the format in the setup page, but the elastic search endpoint must be externally accessible somehow. This is derived from my personal setup (with the specific and sensitive stuff stripped out) but should serve as a decent reference: https://github.com/HPPinata/Nextcloud Take a look at Section 3.3, 4. and 5.