Skip to content
This repository has been archived by the owner on Sep 4, 2019. It is now read-only.

查看表结构(mapping)

iamazy edited this page May 7, 2019 · 3 revisions

因为这一功能实在太过于简单,主要提供在kibana中查看
(但是elasticsearch-sql使用代码也可以,只不过要结合elasticsearch的rest client)

🐖:使用isql插件在kibana中查看

1. 查看index mapping

POST _isql
{
    "sql":"desc apple"
}

2. 查看field mapping

POST _isql
{
    "sql":"desc apple/productName"
}
Clone this wiki locally