Access embedded Solr server from external applicat

2019-07-24 23:54发布

问题:

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

回答1:

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.



标签: solr lucene