使用Azure认知搜索索引从BLOB存储内容中剥离HTML标签

发布于 2025-02-07 12:50:37 字数 1316 浏览 2 评论 0原文

我已经设置了HTML文件的BLOB存储数据源的索引器,以及以下配置 parsingMode =“ default” datatoExtract =“ contentAndMetAdata” 场值始终是原始的HTML 但是我想要没有HTML标签的内容。

对于文档和内容类型的文件extension是“ .html”,是“ text/html”

{
  "name" : "my-blob-indexer",
  "dataSourceName" : "my-blob-datasource",
  "targetIndexName" : "my-search-index",
  "parameters": {
      "batchSize": null,
      "maxFailedItems": null,
      "maxFailedItemsPerBatch": null,
      "base64EncodeKeys": null,
      "configuration": {
          "indexedFileNameExtensions" : ".html",
          "excludedFileNameExtensions" : ".png,.jpeg",
          "dataToExtract": "contentAndMetadata",
          "parsingMode": "default"
      }
  },
  "schedule" : { },
  "fieldMappings" : [ ]
}

https://learn.microsoft.com/en-us/azure/search/search-howto-indexing-indexing-azure-blob-storage 我正在使用此文档作为索引数据的参考blob存储

I have setup an indexer with blob storage data source for the html file and with the following configuration of parsingMode="default" and dataToExtract="contentAndMetadata" the content field value is always the raw HTML
But I want the content without html tags.

The file extension is ".html" for the document and content type is "text/html"

{
  "name" : "my-blob-indexer",
  "dataSourceName" : "my-blob-datasource",
  "targetIndexName" : "my-search-index",
  "parameters": {
      "batchSize": null,
      "maxFailedItems": null,
      "maxFailedItemsPerBatch": null,
      "base64EncodeKeys": null,
      "configuration": {
          "indexedFileNameExtensions" : ".html",
          "excludedFileNameExtensions" : ".png,.jpeg",
          "dataToExtract": "contentAndMetadata",
          "parsingMode": "default"
      }
  },
  "schedule" : { },
  "fieldMappings" : [ ]
}

https://learn.microsoft.com/en-us/azure/search/search-howto-indexing-azure-blob-storage
I'm using this document as reference to index data the blob storage

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文