Any way to spin up an in-memory Solr instance for executing integration tests?

2025-07-11 Thread Uday Kumar
Hi all, Currently, we run Solr on a test server and use it during our integration tests for Spring Batch Jobs. This server needs to be maintained and make sure solr is up and running while executing test cases. For the database connections, we use H2 in-memory DB, which works well because it's fas

Re: Any way to spin up an in-memory Solr instance for executing integration tests?

2025-07-11 Thread Matthias Krüger
Two options: * For integration tests that use Solr "externally" start a Solr Docker container using TestContainers (e.g. https://opensourceconnections.com/blog/2021/03/01/adding-integration-tests-to-a-solr-plugin-project/ ) * For integration tests that need to spin up SolrCloud but also need to hav

Re: Any way to spin up an in-memory Solr instance for executing integration tests?

2025-07-11 Thread Mikhail Khludnev
For in-process tests developers use https://github.com/apache/solr/blob/5fafabdb13d62b2d590f7602b7720042e5f3a3db/solr/test-framework/src/java/org/apache/solr/cloud/SolrCloudTestCase.java#L83 it might be a possible approach. Also you may experiment RAMDirectoryFactory in solrconfig.xml On Fri, Jul

Re: Any way to spin up an in-memory Solr instance for executing integration tests?

2025-07-11 Thread Uday Kumar
Hi Thanks for suggestions, will check these *Thanks & Regards,* *Uday Kumar* *Product Search Tech* On Fri, Jul 11, 2025, 14:08 Matthias Krüger < mkrue...@opensourceconnections.com> wrote: > Two options: > * For integration tests that use Solr "externally" start a Solr Docker > container using Te

Re: Error building Solr 8.4 with Ivy and Ant

2025-07-11 Thread Gupta, Ankur
Hi Mikhail, Thank you so much for getting back to me. From what I understand these two are libs are being used in the codebase and removing them would cause an error while building. Would it be possible for you to suggest me an optimal way to import for the solr and then it can be build? Thanks

Re: Error building Solr 8.4 with Ivy and Ant

2025-07-11 Thread Mikhail Khludnev
On Fri, Jul 11, 2025 at 12:36 PM Mikhail Khludnev wrote: > I suggested removing repositories, not libs. > Regarding Restlet, it either will be found via maven central or it needs > https://maven.restlet.talend.com/ is specified as a repository. > > > On Fri, Jul 11, 2025 at 11:08 AM Gupta, Ankur