I am running Nextcloud in a docker container, and trying to set up fulltextsearch using elasticsearch in another docker container. I have many PDFs that have been previously OCRd before uploading to Nextcloud. I can search on document names, but cannot search on the content of these files.
I have the ingest-attachment plugin enabled according to the docs on the bitnami/elasticsearch site, but am receiving an error from occ fulltextsearch:index stating:
There are no ingest nodes in this cluster, unable to forward request to an ingest node.
I’d appreciate any help anyone can give.
Here is my Docker-compose.yml:
version: '2'
services:
elasticsearch:
image: bitnami/elasticsearch:latest
container_name: elasticsearch
user: root
environment:
- ELASTICSEARCH_PLUGINS=ingest-attachment
volumes:
- ./data:/bitnami/elasticsearch/data
ports:
- 9200:9200
- 9300:9300
networks:
BACKBONE:
fulltextsearch:test
abc@ab6982ab2c21:/config/www/nextcloud$ 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: 1, expected: [“simple”]) ok
-
‘document is a simple test’ (result: 2, expected: [“simple”,“license”]) ok
-
‘“document is a test”’ (result: 0, expected: []) ok
-
‘“document is a simple test”’ (result: 1, expected: [“simple”]) ok
-
‘document is a simple -test’ (result: 1, expected: [“license”]) ok
-
‘document is a simple +test’ (result: 1, expected: [“simple”]) ok
-
‘-document is a simple test’ (result: 0, expected: []) ok
Updating documents access. ok
Pausing 3 seconds 1 2 3 ok
Searching with group access rights: -
‘license’ - [] - (result: 0, expected: []) ok
-
‘license’ - [“group_1”] - (result: 1, expected: [“license”]) ok
-
‘license’ - [“group_1”,“group_2”] - (result: 1, expected: [“license”]) ok
-
‘license’ - [“group_3”,“group_2”] - (result: 1, expected: [“license”]) ok
-
‘license’ - [“group_3”] - (result: 0, expected: []) ok
Searching with share rights: -
‘license’ - notuser - (result: 0, expected: []) ok
-
‘license’ - user2 - (result: 1, expected: [“license”]) ok
-
‘license’ - user3 - (result: 1, expected: [“license”]) ok
Removing test. ok
Unlocking process ok
fulltextsearch:check
abc@ab6982ab2c21:/config/www/nextcloud$ php ./occ fulltextsearch:check
Full text search 1.4.1 -
Search Platform:
Elasticsearch 1.5.1
{
“elastic_host”: [
“http://192.168.10.6:9200”
],
“elastic_index”: “nextcloud_index”,
“fields_limit”: “10000”,
“es_ver_below66”: “0”,
“analyzer_tokenizer”: “standard”
} -
Content Providers:
Files 1.4.2
{
“files_local”: “1”,
“files_external”: “1”,
“files_group_folders”: “1”,
“files_encrypted”: “0”,
“files_federated”: “0”,
“files_size”: “100”,
“files_pdf”: “1”,
“files_office”: “1”,
“files_image”: “0”,
“files_audio”: “0”
}
When I run fulltextsearch:index, I get the following error:
┌─ Errors ────
│ Error: 458/458
│ Index: files:1690
│ Exception: Elasticsearch\Common\Exceptions\ServerErrorResponseException
│ Message: There are no ingest nodes in this cluster, unable to forward request to an ingest node.
│
│
└──
When I run a curl command from the nexctcloud contaner, and a different computer on the network I get:
$ curl -X GET “192.168.10.6:9200/?pretty”
{
“name” : “b5b6f04cdd47”,
“cluster_name” : “elasticsearch”,
“cluster_uuid” : “t8FhwXhzSQGHXKf232O0Hw”,
“version” : {
“number” : “7.6.2”,
“build_flavor” : “oss”,
“build_type” : “tar”,
“build_hash” : “ef48eb35cf30adf4db14086e8aabd07ef6fb113f”,
“build_date” : “2020-03-26T06:34:37.794943Z”,
“build_snapshot” : false,
“lucene_version” : “8.4.0”,
“minimum_wire_compatibility_version” : “6.8.0”,
“minimum_index_compatibility_version” : “6.0.0-beta1”
},
“tagline” : “You Know, for Search”
}