Re: Programatic instantiation of solr container and cores with config loaded from a jar

2013-07-22 Thread Alexandre Rafalovitch
I am trying to read a solr config files from outside of running Solr instance. It's - one of the approaches - for SolrLint ( https://github.com/arafalov/SolrLint ). I kind of expected to just need core Solr classes for that, but I needed SolrJ and Lucene analyzer jar and a bunch of other jars. The

Re: Programatic instantiation of solr container and cores with config loaded from a jar

2013-07-22 Thread Alan Woodward
Hi Alex, I'm not sure I follow - are you trying to create a ConfigSolr object from data read in from elsewhere, or trying to export the ConfigSolr object to another process? If you're dealing with solr core java objects, you'll need the solr jar and all its dependencies (including solrj). Ala

Re: Programatic instantiation of solr container and cores with config loaded from a jar

2013-07-22 Thread Alexandre Rafalovitch
Does it mean that I can easily load Solr configuration as parsed by Solr from an external program? Because the last time I tried (4.3.1), the number of jars required was quite long, including SolrJ jar due to some exception. Regards., Alex Personal website: http://www.outerthoughts.com/ Linke

Re: Programatic instantiation of solr container and cores with config loaded from a jar

2013-07-22 Thread Robert Krüger
Great, thank you! On Jul 22, 2013 1:35 PM, "Alan Woodward" wrote: > > Hi Robert, > > The upcoming 4.4 release should make this a bit easier (you can check out the release branch now if you like, or wait a few days for the official version). CoreContainer now takes a SolrResourceLoader and a Conf

Re: Programatic instantiation of solr container and cores with config loaded from a jar

2013-07-22 Thread Alan Woodward
Hi Robert, The upcoming 4.4 release should make this a bit easier (you can check out the release branch now if you like, or wait a few days for the official version). CoreContainer now takes a SolrResourceLoader and a ConfigSolr object as constructor parameters, and you can create a ConfigSolr

Programatic instantiation of solr container and cores with config loaded from a jar

2013-07-22 Thread Robert Krüger
Hi, I use solr embedded in a desktop app and I want to change it to no longer require the configuration for the container and core to be in the filesystem but rather be distributed as part of a jar file. Could someone kindly point me to the right docs? So far my impression is, I need to instanti