ES 开启字段内存排序,设置fielddata = true

wylc123 9月前 ⋅ 1081 阅读

先直接看报错信息:va.lang.IllegalArgumentException: Fielddata is disabled on text fields by default. Set fielddata=true on [username] in order to load fielddata in memory by uninverting the inverted index. Note that this can however use significant memory. Alternatively use a keyword field instead.

解决方法:

PUT sharingdata/_mapping
{
  "properties": {
    "systemnamerely": { 
      "type":     "text",
      "fielddata": true
    }
  }
}

相关文章推荐

全部评论: 0

    我有话说: