首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Azure搜索;在特定字段中搜索

Azure搜索;在特定字段中搜索
EN

Stack Overflow用户
提问于 2015-02-10 20:21:38
回答 1查看 3.8K关注 0票数 0

在Azure搜索中,我可以在特定字段上进行搜索吗?

我有下面的“研究”索引。

代码语言:javascript
复制
{
  "Error": null,
  "IsSuccess": true,
  "StatusCode": 201,
  "Body": {
    "name": "Research",
    "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
      },
      {
        "name": "Questions",
        "type": "Collection(Edm.String)",
        "searchable": true,
        "filterable": false,
        "sortable": false,
        "facetable": false,
        "suggestions": true,
        "key": false,
        "retrievable": true
      },
    ],
    "scoringProfiles": [],
    "defaultScoringProfile": null,
    "corsOptions": null
  }
} 

现在,在搜索查询中,我可以让Azure只在“问题”字段中搜索吗?

例如,当用户搜索“物联网如何造福汽车行业?”并选择我想要找到的只有“问题”我才能做到这一点。

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2015-02-10 20:43:44

是的,使用searchFields=[string]参数是可能的。例如,在您的情况下,您需要将&searchFields=Questions添加到您的URL搜索请求中。您可以在这里了解更多有关此问题的信息:https://msdn.microsoft.com/en-us/library/azure/dn798927.aspx

票数 4
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/28441033

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档