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.