使用建议作为我的主要搜索方法是否可以?
为什么要打扰匹配,查询等...当建议提供"模糊"搜索我在寻找?
如果我发送" canc"为了有弹性,我按照自己的意愿回归癌症研究",#34;癌症幸存者"
这种方法有什么缺陷吗?
我使用的是ES 5.0.1
以下是映射:
{
"my_search_engine": {
"mappings": {
"AVkh9NoKj_akQIGkggtM": {
"properties": {
"title": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
},
"title_suggest": {
"type": "completion",
"analyzer": "simple",
"preserve_separators": true,
"preserve_position_increments": true,
"max_input_length": 50
},
"url": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
}
}
},
"my_company": {
"properties": {
"title": {
"type": "text"
},
"title_suggest": {
"type": "completion",
"analyzer": "simple",
"preserve_separators": true,
"preserve_position_increments": true,
"max_input_length": 50
},
"url": {
"type": "text"
}
}
}
}
}
}