使用Solr远程流 [英] Remote streaming with Solr

查看:489
本文介绍了使用Solr远程流的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用远程流使用Apache Solr实现遇到了麻烦。

I'm having trouble using remote streaming with Apache Solr.

我们previously不得不在哪里被编入索引的位置所以我们只好到是文件的同一服务器上运行Solr的传递我们想要索引文件的路径。

We previously had Solr running on the same server where the files to be indexed are located so all we had to to was pass it the path of the file we wanted to index.

我们使用的是这样的:

stream.file=/path/to/file.pdf

这工作得很好。我们现在已经搬到Solr的,这样它运行在不同的服务器来使用它的网站上。这是因为它使用了太多的资源。

This worked fine. We have now moved Solr so that it runs on a different server to the website that uses it. This was because it was using up too many resources.

我现在使用以下中的文件的方向指向的solr:

I'm now using the following to point Solr in the direction of the file:

stream.file=http://www.remotesite.com/path/to/file.pdf

当我这样做的Solr报告以下错误:

When I do this Solr reports the following error:

http:/www.remotesite.com/path/to/file.pdf (No such file or directory)

请注意,它是剥离从http斜线之一://

Note that it is stripping one of the slashes from http://.

我怎样才能在某一个网址让Solr的索引文件中像我尝试上述呢?该enableRemoteStreaming参数已经被设置为true。

How can I get Solr to index a file at a certain URL like i'm trying to do above? The enableRemoteStreaming parameter is already set to true.

感谢您

推荐答案

有关远程流

您将需要启用远程流

<requestParsers enableRemoteStreaming="true" multipartUploadLimitInKB="2048" />

和可能使用 stream.url 为网址

如果远程流已启用并且URL的内容被调用时
  请求处理,每个stream.url和stream.file的内容
  参数被取出并作为流通过。

If remote streaming is enabled and URL content is called for during request handling, the contents of each stream.url and stream.file parameters are fetched and passed as a stream.

这篇关于使用Solr远程流的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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