如何从Java运行Solr实例

问题描述 投票:0回答:1

我有一个Spring Boot应用程序,用于在后期构造期间将数据加载到solr中并进行相应的检索,但是我想确保在Spring Boot应用程序启动之前,solr服务器已启动并正在运行。我该如何实现?有没有办法在Java中加载solr实例?

solr solrj solrcloud spring-data-solr solrclient
1个回答
0
投票
通过使Solr与应用程序分开,您可以根据需要对其进行扩展,以实现集群性能和更好的正常运行时间/故障转移支持。
© www.soinside.com 2019 - 2024. All rights reserved.