从外部应用程序访问嵌入式Solr服务器 [英] Access embedded Solr server from external application

查看:47
本文介绍了从外部应用程序访问嵌入式Solr服务器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有什么方法可以从当前JVM外部访问EmbeddedSolrServer?例如,更新索引或查看索引统计信息( Luke 是很好的工具,但是我想喜欢使用基于网络的内容.

Is there any way to access EmbeddedSolrServer from outside current JVM? For example, to update indexes or review index stats (Luke is good tool, but I'd like to use something web-based).

推荐答案

EmbeddedSolrServer 并不意味着这样使用此外,不建议再使用它:

EmbeddedSolrServer is not meant to be used like that. Furthermore, its use is not recommended anymore:

使用Solr的最简单,最安全的方法是通过Solr的标准HTTP接口.嵌入Solr的灵活性较差,难以支持,而不是经过充分测试,应保留用于特殊情况.

The simplest, safest, way to use Solr is via Solr's standard HTTP interfaces. Embedding Solr is less flexible, harder to support, not as well tested, and should be reserved for special circumstances.

您可以仅对索引运行 HttpSolrServer 并通过http对其进行访问.否则,您可以使用一种特定的基于Lucene的工具来分析索引,就像您已经提到的那样(Luke).

You can just run a HttpSolrServer against your index and access to it through http. Otherwise you can analyze your index using a specific lucene based tool, like the one (Luke) you already mentioned.

这篇关于从外部应用程序访问嵌入式Solr服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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