es-dsl notes

Query all index information
GET / _cat / indices? V

// Query mapping relationship
GET / index_name / _mapping? Pretty = true

Query all indexes
POST / _xpack / sql? Format = txt
{
"query": "SHOW tables"
}

Some simple sql is converted to dsl
GET / _xpack / sql / translate
{
"query": "select * from index_name where xxx = xxx"
}

Guess you like

Origin www.cnblogs.com/merciless/p/12718807.html