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
82 stars 32 forks source link

compatibility issues with newest elasticsearch version #377

Closed mudi0 closed 4 months ago

mudi0 commented 4 months ago

Issue: Default Mapping and Setting of Elasticsearch is Not Compatible with Newest Elasticsearch Version

Elasticsearch Version: 8.14.2
FullTextSearch Version: 29.0.0
FullTextSearch_Elasticsearch Version: 29.0.1

Steps to Reproduce:

  1. Adjust Elasticsearch Loglevel:

    nano /etc/elasticsearch/log4j2.properties

    Set the log level to debug:

    rootLogger.level = debug
  2. Reset and Reindex FullTextSearch:

    sudo -u www-data php /var/www/nextcloud/occ fulltextsearch:reset
    sudo -u www-data php /var/www/nextcloud/occ fulltextsearch:index
  3. Check the Elasticsearch Log for Errors:

    tail -f /var/nextcloud_data/nextcloud.log

Observed Behavior:

During the index creation, the process runs into an exception as seen in the Elasticsearch log file: elasticsearch logfile.txt

Error Message:

Failed to parse mapping: Root mapping definition has unsupported parameters: [standard: {dynamic=true, properties={owner={type=keyword}, groups={type=keyword}, circles={type=keyword}, metatags={type=keyword}, source={type=keyword}, title={copy_to=combined, analyzer=keyword, term_vector=with_positions_offsets, type=text}, content={copy_to=combined, analyzer=analyzer, term_vector=with_positions_offsets, type=text}, users={type=keyword}, tags={type=keyword}, provider={type=keyword}, subtags={type=keyword}, links={type=keyword}, combined={analyzer=analyzer, term_vector=with_positions_offsets, type=text}, hash={type=keyword}}}]

Analysis:

The mapping and setting of the index are defined in the following file, which appear to be incompatible with the latest version of Elasticsearch: lib/Service/IndexMappingService.php

Request:

Please update the FullTextSearch and FullTextSearch_Elasticsearch apps to be compatible with Elasticsearch version 8.14.2.

XueSheng-GIT commented 4 months ago

Sounds like https://github.com/nextcloud/fulltextsearch_elasticsearch/issues/329. @mudi0 please double check whether your issue is different to this. if not, I suggest to close this issue.

mudi0 commented 4 months ago

OK, you can close it.

XueSheng-GIT commented 4 months ago

@mudi0, I do not have the rights to close it. But you can do it yourself.