【发布时间】:2018-08-01 01:04:47
【问题描述】:
如何在 ES 5.4 版本中通过查询 url 对特定字段进行排序
http://localhost:9200/companies/emp/_search?q=*&sort=name:desc
我在这里搜索 emp 并按降序显示 emp 名称。 我遇到了异常
Fielddata is disabled on text fields by default. Set fielddata=true on [name] 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."
有什么帮助吗?
【问题讨论】:
标签: sorting hadoop elasticsearch elasticsearch-plugin