简体   繁体   中英

How to run Solr instance from Java

I have a spring boot app which is used to load data into solr during post construct and retrieve accordingly but i want to make sure solr server is up and running before spring boot app comes up. How can i achieve that? Is there a way to load solr instance in java?

You can use the EmbeddedSolrServer - but that's going to limit your architecture and performance early and is not recommended for production use.

By keeping Solr separate from your application you can scale it as necessary, both to achieve clustered performance and better uptime / fail over support.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM