鉴于我的索引配置如下:
{
"Error": null,
"IsSuccess": true,
"StatusCode": 201,
"Body": {
"name": "test-want-index",
"fields": [
{
"name": "Id",
"type": "Edm.String",
"searchable": false,
"filterable": false,
"sortable": false,
"facetable": false,
"suggestions": false,
"key": true,
"retrievable": true
},
{
"name": "Title",
"type": "Edm.String",
"searchable": true,
"filterable": false,
"sortable": false,
"facetable": false,
"suggestions": true,
"key": false,
"retrievable": true
},
{
"name": "Description",
"type": "Edm.String",
"searchable": true,
"filterable": false,
"sortable": false,
"facetable": false,
"suggestions": true,
"key": false,
"retrievable": true
},
],
"scoringProfiles": [],
"defaultScoringProfile": null,
"corsOptions": null
}
}
填充了以下数据:
Id:123, Title:starbucks, Description:coffee that is good
Id:456, Title:big b, Description:coffee that is bad
Id:789, Title:elk brand, Description:we have elk stars
当用户输入以下查询时starbucs coffee
是否可以配置索引字段以便我可以:
- 匹配 id 为 123 和 id 为 456 的项目
- 模糊搜索(或建议?)标题和描述
笔记:
- 输入
stabuck
作为建议的搜索词返回 id 123 - 输入
coffee
作为建议的搜索词返回 id 456 - 输入
starbucs coffee
不会返回任何内容。<-我的问题。