如何索引存储在 solr4 中其他服务器上的 XML 文件 [英] How can I do indexing XML files stored on other server in solr4

查看:20
本文介绍了如何索引存储在 solr4 中其他服务器上的 XML 文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已将所有 XML 文件存储在另一台服务器上,并且已在不同服务器上安装并配置了 SOLR.如何将这些 XML 文件索引到 SOLR 中.我已经检查过 nutch,但它的主要目的是抓取 html 页面并将它们编入索引.我不需要爬行.我在其他服务器上的特定路径上拥有所有这些文件.我只需要在 SOLR 中索引这些 XML 文件.我已经安装并配置了 SOLR4.

I have all my XML files stored on to the other server and I have installed and configure the SOLR on different server. How can I index those XML files into the SOLR. I have checked nutch but it's main purpose is to crawl the html pages and index them. I don't need to crawl. I have All those files on specific path on other server. I just need to do indexing those XML files in SOLR. I have installed and configure SOLR4.

如果有人做过这样的事情,请告诉我该怎么做.谢谢

If anyone have did some thing like this please let me know how to do that. Thank you

推荐答案

为什么不从 Solr 服务器挂载驱动器,并执行以下操作:

Why not mount the drive from your Solr server, and do something like:

java -jar post.jar "Z:homedatadelivery extarticles.xml"

java -jar post.jar "Z:homedatadelivery extarticles.xml"

post.jar 位于 exampledocs 文件夹中.您也可以将其用作示例应用程序并构建您自己的应用程序来发布来自其他服务器的那些 xml 文件

post.jar is in the exampledocs folder. You might also use it as an example application and build your own application to post those xml files from the other server

这篇关于如何索引存储在 solr4 中其他服务器上的 XML 文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆