I want to autotest some things for elastic. One of them it's to: 1. GET all fields from mapping 2. Check that all fields are present 3. Check that fields with present _id in their names have type integer. But let's get started at least with returning mappings. I do it successfully in kibana console with
GET /persons/_mappings
But did not find any information about how to do it in requests: Currently, I have this request:
let client = await connectElastic();
const response = await client.search({
method: 'GET',
index: 'persons',
// perheps here must be some parameter?
});
