How can I do indexing XML files stored on other server in solr4

前端 未结 3 1941
清酒与你
清酒与你 2021-01-20 21:11

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

相关标签:
3条回答
  • 2021-01-20 22:00

    Take a look at the DataImportHandler. I think you should be able to access a network file if it has the proper permissions set up.

    0 讨论(0)
  • 2021-01-20 22:07

    Based on your comment to Shane Alexander's answer, you will need to use the URLDataSource option of the DataImportHandler to retrive the file via a Url. Additionally, you will need to incorporate the patch from SOLR-1490 to allow for authentication support.

    0 讨论(0)
  • 2021-01-20 22:14

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

    java -jar post.jar "Z:\home\data\delivery\textarticles.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

    0 讨论(0)
提交回复
热议问题