I'm using ES 7.14 / Kibana 7.10, my query is the following:
var query = {
"index": "my_index",
"size": 10
};
var body = {
"query": {
"bool": {
"must": [
{
"query_string": {
"query": "*antonio* *banderas*",
"fields": [
"text"
],
"default_operator": "and"
}
}]
}
}
};
body.explain = false;
body.profile = true;
query.body = body;
const res = await client.search(query);
I have set to true
the high-level profile
flag to activate the Profile API, but I do not see the profile
field in the response object res
, where res
holds an array of results:
[{
_index: 'my_index',
_type: '_doc',
_id: 'my_doc_id',
_score: 2,
_source: {}
}]