当前位置: 代码迷 >> 综合 >> org.elasticsearch.common.compress.NotXContentException: Compressor detection can only be called on s
  详细解决方案

org.elasticsearch.common.compress.NotXContentException: Compressor detection can only be called on s

热度:71   发布时间:2023-09-20 01:18:18.0

使用bulkRequest时候

new IndexRequest(indexName,indexType,indexId).source(paramMap,XContentType.JSON)

paramMap为null时会报以下错误

org.elasticsearch.common.compress.NotXContentException: Compressor detection can only be called on some xcontent bytes or compressed xcontent bytes
bulkRequest使用时候不允许paramMap为null

  相关解决方案