fulltextsearch
fulltextsearch copied to clipboard
Cant index using elasticsearch 8
Failed to index after upgrade to elastic 8.1.0, reverted to 7.17.1 work again.
Unrecognized parameter
, something depreceated?
debian@b06dd1767b73:/var/www/html$ ./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. fail
Error detected, unlocking process ok
In Connection.php line 693:
{"error":{"root_cause":[{"type":"illegal_argument_exception","reason":"request [/nextcloudfts] contains unrecognized parameter: [include_type_name]"}],"type":"illegal_argument_exception","reason":"request [/nextcloudfts] contains
unrecognized parameter: [include_type_name]"},"status":400}
fulltextsearch:test [--output [OUTPUT]] [-j|--json] [-d|--platform_delay PLATFORM_DELAY]
confirmed, deprecated https://www.elastic.co/guide/en/elasticsearch/reference/master/migrating-8.0.html
I'm experiencing the same. Would appreciate if this issue is fixed.
How did you revert to 7.14?
well, as i deploy via container, change the tag, and wiped out the data and reindex from beginning.
can you please show how did you remove or changed that tag? I just commented the "if" statement in the file IndexMappingService.php who references that tag but didn't work
i mean elastic version tag
es:
image: elasticsearch:7.17.1
environment:
- discovery.type=single-node
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
- xpack.security.enabled=true
user: 1000:1000
ulimits:
memlock:
soft: -1
hard: -1
networks:
- nextcloud
volumes:
- ./esdata/data:/usr/share/elasticsearch/data
- ./esdata/plugins:/usr/share/elasticsearch/plugins
Funny enough, during ES 6.6, this include_type_name
also came with issues. Meaning there should already be a config to remove its generation:
Please test and confirm it is working:
./occ config:app:set --value '1' fulltextsearch_elasticsearch es_ver_below66
Funny enough, during ES 6.6, this
include_type_name
also came with issues. Meaning there should already be a config to remove its generation:Please test and confirm it is working:
./occ config:app:set --value '1' fulltextsearch_elasticsearch es_ver_below66
Can't test it right now, as currently disabled due version mismatch fts still 23.0.0 , after fts update to 24.0.0 i will confirm again.
Is there docs somewhere all command supported? this command ./occ config:app:set --value '1' fulltextsearch_elasticsearch es_ver_below66
cant find it anywhere 🤔
ES8 requires a lot of changes and won't be supported until 8.x is not considered 'stable', and only on last major release of Nextcloud.
Closing right now, until elastic 8 considered stable and supported. Thanks for the support.