The following is a templeate in ElasticSearch (v.2.4.5), my question is, if there is a way to promote one of these fields, for example timeStamp , as primary key to help the research during the query; like it happens on database usually.
{
"order": 0,
"template": "simsamples-*",
"settings": {
"index": {
"number_of_shards": "1"
}
},
"mappings": {
"ProbeSamples": {
"properties": {
"date": {
"index": "no",
"type": "string"
},
"timeStamp": {
"format": "epoch_second",
"type": "date"
},
"temperatures": {
"type": "double"
},
"id": {
"index": "not_analyzed",
"type": "string"
}
}
}
}
}
Or by other words, there is a way to optimize the template to research a particular field of interest.
Thank you