version : 7.6.2
we search the docs:
curl xxx.xxx.xxx.xx:9200/index-1/_search?pretty -H'Content-type: application/json' -d'
{
  "query": {
    "terms": {
        "field-1": ["xxxxxxx"]
    }
  }
}
'
the response body looks like: (there is no _routing field and value)
"hits" : {
    "total" : {
      "value" : 1,
      "relation" : "eq"
    },
    "max_score" : 1.0,
    "hits" : [
      {
        "_index" : "index-1",
        "_type" : "_doc",
        "_id" : "OL6tLXQB7k8FSPLGd-TD",
        "_score" : 1.0,
        "_source" : {
          "field-1" : xxxxxxxxx,
while i use get doc by id:
curl xxx.xxx.xxx.xxx:9200/index-1/_doc/OL6tLXQB7k8FSPLGd-TD
the resp body is
{"_index":"index-1","_type":"_doc","_id":"OL6tLXQB7k8FSPLGd-TD","found":false}
it is very strange that I add a routing parameter with a value (I test a wild range of number of routing value) , and the get doc by id is founded
curl xxx.xxx.xxx.xxx:9200/index-1/_doc/OL6tLXQB7k8FSPLGd-TD?routing=568
the response body is
{"_index":"index-1","_type":"_doc","_id":"OL6tLXQB7k8FSPLGd-TD","_version":1,"_seq_no":18073027,"_primary_term":1,"found":true,"_source": ....