I have a piece of data that says:
善恩康生物科技(苏州)有限公司
Field is:
{"name": {"type": "text","analyzer": "ik_max_word", "search_analyzer": "ik_smart" }}
My search statement is:
{"query":{"match_phrase":{"name":{"query":"善恩康"}}}}
return:
{
"took": 2,
"timed_out": false,
"_shards": {
"total": 4,
"successful": 4,
"skipped": 0,
"failed": 0
},
"hits": {
"total": {
"value": 0,
"relation": "eq"
},
"max_score": null,
"hits": [ ]
}
}
I tried using ID queries:
{"query":{"match":{"_id":{"query":"10419864"}}}}
return:
{
"took": 2,
"timed_out": false,
"_shards": {
"total": 4,
"successful": 4,
"skipped": 0,
"failed": 0
},
"hits": {
"total": {
" value": 1,
"relation": "eq"
},
"max_score": 1,
"hits": [
{
"_index": "enterprise",
"_type": "_doc",
"_id": "10419864",
"_score": 1,
"_source": {
"alias_names": "善恩康",
"name": "善恩康生物科技(苏州)有限公司",
"status": 1,
}
}
]
}
}