On Oct 6, 2008, at 5:58 PM, Chris Hostetter wrote:
: > The only filesystem dependency that I want is the index itself.
should we assume you're baking your solrconfig.xml and schema.xml
directly into a jar?
: > The current implementation of the SolrResource seems to suggest
that i need
: > a filesystem dependency to keep my configuration in.
I'm not sure what you mean by "SolrResource" ... there's no hard
dependency on having any configs on disk that i know of (anymore)
To instantiate the schema and core, you should not *need* any files on
disk -- however, many of the plugins expect files like 'stopwords.txt'
'elevate.xml' etc. They use the ResourceLoader, so (in theory) you
could hijack that to send stuff from your .jar
: > I manged to work around this using the code below, but it feels
kind of
: > wrong.
If you get it working -- be happy and move on... I don't think there
is a clean way to do it off the shelf.
For solr 2.0 one of the biggest changes we need to make is to clearly
separate configuration from implementation -- as is, Config/SolrConfig
are smattered with settings, xpath and resource loading stuff.
We need to clearly separate the 'settings' from the means of loading
the settings.
ryan