如何让 Solr Extraction Handler 提取多个同名的 META 标签?

发布于 2024-08-23 15:37:37 字数 439 浏览 3 评论 0原文

我正在将一些 HTML 文档上传到 SOLR 提取处理程序 (Solr-Cell),这些文档的头部具有以下形式的 META 元素:

<meta name="product" content="firstproduct" />
<meta name="product" content="anotherproduct" />

我的架构将产品定义为多值字段:

<field name="product" type="string" indexed="true" stored="true" multiValued="true"/>

我想要两者要添加到该字段内的索引的产品。不幸的是,出了点问题——只有最后一个产品被成功记录。

谁能告诉我如何让它发挥作用,谢谢:)

I am uploading some HTML documents to the SOLR extraction handler (Solr-Cell), which have META elements in the head in this form:

<meta name="product" content="firstproduct" />
<meta name="product" content="anotherproduct" />

My schema has product defined as a multi-valued field:

<field name="product" type="string" indexed="true" stored="true" multiValued="true"/>

I want both products to be added to the index within this field. Unfortunately, something is going wrong - only the last product is successfully recorded.

Can anyone tell me how to get this to work, thanks :)

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

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文