fulltextsearch icon indicating copy to clipboard operation
fulltextsearch copied to clipboard

Cant index using elasticsearch 8

Open martadinata666 opened this issue 2 years ago • 9 comments

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

martadinata666 avatar Mar 23 '22 14:03 martadinata666

I'm experiencing the same. Would appreciate if this issue is fixed.

husmannm avatar Mar 25 '22 15:03 husmannm

How did you revert to 7.14?

husmannm avatar Mar 25 '22 15:03 husmannm

well, as i deploy via container, change the tag, and wiped out the data and reindex from beginning.

martadinata666 avatar Mar 25 '22 23:03 martadinata666

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

Cofradex avatar Mar 28 '22 21:03 Cofradex

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

martadinata666 avatar Mar 28 '22 22:03 martadinata666

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

ArtificialOwl avatar May 04 '22 22:05 ArtificialOwl

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 🤔

martadinata666 avatar May 05 '22 03:05 martadinata666

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.

ArtificialOwl avatar May 05 '22 15:05 ArtificialOwl

Closing right now, until elastic 8 considered stable and supported. Thanks for the support.

martadinata666 avatar May 06 '22 12:05 martadinata666