Here are my mappings for index metadata
{
"mappings": {
"metric": {
"properties": {
'model_id': {"type": "string", "index": "not_analyzed"}
}
}
}
}
I can see that I have 1 document in Kibana under that index

Here is my query as a curl command:
curl -XGET 'localhost:9200/metadata/metric/_search?pretty' -H 'Content-Type: application/json' -d'
{
"query" : {
"constant_score" : {
"filter" : {
"term" : {
"model_id" : "2532070e-da4b-465f-ba3b-f96beaaa6d5c"
}
}
}
}
}
'
Here is what it returns:
{
"took" : 0,
"timed_out" : false,
"_shards" : {
"total" : 5,
"successful" : 5,
"skipped" : 0,
"failed" : 0
},
"hits" : {
"total" : 0,
"max_score" : null,
"hits" : [ ]
}
}
I followed the directions in the documentation here to try and get this working:
https://www.elastic.co/guide/en/elasticsearch/guide/current/_finding_exact_values.html