Access embedded Solr server from external applicat

2019-07-24 23:50发布

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).

标签: solr lucene
1条回答
等我变得足够好
2楼-- · 2019-07-25 00:37

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

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.

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.

查看更多
登录 后发表回答