1 回答

TA貢獻(xiàn)1859條經(jīng)驗(yàn) 獲得超6個(gè)贊
由于您沒(méi)有映射features并且正在添加索引數(shù)據(jù),因此會(huì)生成默認(rèn)映射。
features嘗試下面的搜索查詢,這將返回包含以下內(nèi)容的所有文檔'Satellite navigation':'Cruise control'
搜索查詢:
{
"query": {
"bool": {
"must": [
{
"match_phrase": {
"features": "Satellite Navigation"
}
},
{
"match_phrase": {
"features": "Cruise Control"
}
}
]
}
}
}
搜索結(jié)果:
"hits": [
{
"_index": "my-index",
"_type": "_doc",
"_id": "1",
"_score": 1.7178956,
"_source": {
"features": [
"Anti-Lock Brakes",
"Alarm",
"Air Bag Driver",
"Cruise Control",
"Satellite Navigation"
]
- 1 回答
- 0 關(guān)注
- 104 瀏覽
添加回答
舉報(bào)