如何将数据添加到 solr 的模式

发布于 2024-12-23 09:24:12 字数 446 浏览 0 评论 0原文

我尝试根据 solr 的架构向 solandra 添加新数据,但我找不到任何关于此的示例。我的最终目标是将 solandra 与 django-solr 集成。

我对基于原始solr和django-solr的solr中的插入和更新的理解是将http协议上的新数据发送到正确的路径,例如:

http://localhost:8983/solandra/wikipedia/update/json

但是,当我访问url时,浏览器不断告诉我HTTP 错误:404

你能帮我理解一下solandra环境中添加新数据和删除数据的步骤吗?

我也看了reuters-demo,但是插入数据的过程是在reutersimporter.jar文件中处理的,但我也看不到源代码。所以请帮助我了解系统在数据插入和删除方面是如何工作的。

谢谢。

I try to add new data to the solandra according to the solr's schema but I can't find any example about this. My ultimate goal is to integrate solandra with django-solr.

What I understand about the insert and updating in the solr based on the original solr and django-solr is to send the new data on the http protocol to the decent path, for example:

http://localhost:8983/solandra/wikipedia/update/json

However, when I access the url, the browser keep telling me HTTP ERROR: 404.

Can you help me understand the step to add new data and delete the data in the solandra environment?

I also have a look at the reuters-demo, but the procedure to insert data is process in the file of reutersimporter.jar, but I can't see the source as well. So Please help me to understand how the system work in terms of data inserting and deleting.

Thank you.

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

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

发布评论

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

评论(2

自由如风 2024-12-30 09:24:12

由于您使用的是 JSON 更新处理程序,因此 Solr Wiki 有一些通过curl 使用 JSON 处理程序插入数据的好示例。此外,Solr 教程 展示了如何使用 Solr 源中包含的 post.jar 文件插入数据。

Since you are using the JSON update handler, this UpdateJSON page on the Solr Wiki has some good examples of inserting data using the JSON handler via curl. Also, the Indexing Data section of the Solr Tutorial shows how you can insert data using the post.jar file that is included with the Solr source.

揽清风入怀 2024-12-30 09:24:12

您是否正在创建 solr schema.xml 和 solrconfig.xml 并将其发布到 solandra?如果您添加 JSON 处理程序,那么这应该可以工作。 reutersdemo 使用 solrj。 django-solr 应该也可以工作。

Are you creating the solr schema.xml and solrconfig.xml and posting it to solandra? If you add the JSON handler then this should work. The reutersdemo uses solrj. django-solr should work as well.

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