nextcloud / fulltextsearch_elasticsearch

🔍 Use Elasticsearch to index the content of your Nextcloud
https://apps.nextcloud.com/apps/fulltextsearch_elasticsearch
GNU Affero General Public License v3.0
81 stars 30 forks source link

[ES 8.2.0/NC 24.0.2]how to init this feature? #213

Open RavenLiao opened 2 years ago

RavenLiao commented 2 years ago

when i start test,it has this error:

  {"error":{"root_cause":[{"type":"illegal_argument_exception","reason":"request [/my_index] contains unrecognized
   parameter: [include_type_name]"}],"type":"illegal_argument_exception","reason":"request [/my_index] contains un
  recognized parameter: [include_type_name]"},"status":400}

how to continue?

fulltextsearch:check fulltextsearch:test:

root@NextCloud:~ # su -m www -c 'php /usr/local/www/nextcloud/occ fulltextsearch:test'
The process control (PCNTL) extensions are required in case you want to interrupt long running commands - see https://www.php.net/manual/en/book.pcntl.php
Additionally the function 'pcntl_signal' and 'pcntl_signal_dispatch' need to be enabled in your php.ini.

.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. fail
Error detected, unlocking process ok
In Connection.php line 675:

  {"error":{"root_cause":[{"type":"illegal_argument_exception","reason":"request [/my_index] contains unrecognized
   parameter: [include_type_name]"}],"type":"illegal_argument_exception","reason":"request [/my_index] contains un
  recognized parameter: [include_type_name]"},"status":400}

fulltextsearch:test [--output [OUTPUT]] [-j|--json] [-d|--platform_delay PLATFORM_DELAY]

fulltextsearch:check output:

root@NextCloud:~ # su -m www -c 'php /usr/local/www/nextcloud/occ fulltextsearch:check'
The process control (PCNTL) extensions are required in case you want to interrupt long running commands - see https://www.php.net/manual/en/book.pcntl.php
Additionally the function 'pcntl_signal' and 'pcntl_signal_dispatch' need to be enabled in your php.ini.
Full text search 24.0.0

- Search Platform:
Elasticsearch 24.0.0 (Selected)
{
    "elastic_host": [
        "http://192.168.204.66:9200"
    ],
    "elastic_index": "my_index",
    "fields_limit": "10000",
    "es_ver_below66": "0",
    "analyzer_tokenizer": "ik_max_word"
}

- Content Providers:
Files 24.0.0
{
    "files_local": "1",
    "files_external": "0",
    "files_group_folders": "1",
    "files_encrypted": "0",
    "files_federated": "0",
    "files_size": "20",
    "files_pdf": "1",
    "files_office": "1",
    "files_image": "0",
    "files_audio": "0"
}
root@NextCloud:~ # root@NextCloud:~ # su -m www -c 'php /usr/local/www/nextcloud/occ fulltextsearch:check'
    "files_local": "1",
    "files_external": "0",
    "files_group_folders": "1",
    "files_encrypted": "0",
    "files_federated": "0",
    "files_size": "20",
    "files_pdf": "1",
    "files_office": "1",
    "files_image": "0",
    "files_audio": "0"
}

http://192.168.204.66:9200 output:

{
  "name" : "d70fdd794c7a",
  "cluster_name" : "docker-cluster",
  "cluster_uuid" : "bs26sXBZQECT2PohyCuG7w",
  "version" : {
    "number" : "8.2.0",
    "build_flavor" : "default",
    "build_type" : "docker",
    "build_hash" : "b174af62e8dd9f4ac4d25875e9381ffe2b9282c5",
    "build_date" : "2022-04-20T10:35:10.180408517Z",
    "build_snapshot" : false,
    "lucene_version" : "9.1.0",
    "minimum_wire_compatibility_version" : "7.17.0",
    "minimum_index_compatibility_version" : "7.0.0"
  },
  "tagline" : "You Know, for Search"
}
pascalfree commented 1 year ago

I'm having the same issue. Seems ElasticSearch >=8 is not supported yet. See #178 and #179 As version ES7 is reaching EOL soon I guess I'll wait until this is resolved.

SteffnVo commented 1 year ago

I'm having the same issue. :-(