Had to help Crell out with this one - the way we set up the solrconfig.xml with gettable files means that Solr will not start correctly if those files are absent - though you can have just an empty file.

We need to update the README and other docs to make a note of this for people installing.

Perhaps we should create a conf directory in CVS (or several)?

Comments

Crell’s picture

Subscribe. :-)

I'd be fine with a full "copy this directory to here and setup multicore" type setup. The book I've got on Solr basically says to not bother with non-multicore, and I needed to do multicore for my setup, so making that easy with a full drop in directory sounds fine.

jpmckinney’s picture

pwolanin’s picture

Version: 6.x-1.x-dev » 7.x-1.x-dev
Status: Active » Needs review
StatusFileSize
new724 bytes
pwolanin’s picture

Version: 7.x-1.x-dev » 6.x-1.x-dev
Status: Needs review » Patch (to be ported)

committed to 7.x

pwolanin’s picture

Status: Patch (to be ported) » Fixed

committed to 6.x-1.x and 2.x

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

PatchRanger’s picture

Version: 6.x-1.x-dev » 7.x-1.x-dev
Status: Closed (fixed) » Needs review
StatusFileSize
new4.5 KB

Sorry for animating old thread - but I think it is better than create new one with almost the same topic.
The problem is that I have to manually create some files, which are definitely necessary. I think it is ok in case if they were optional - but as they are really required we should include empty files in default configuration. Also README.txt has no word about solrcore.properties, which must be copied too - so after all the proposed patch makes installation process simpler, because we avoid such problems with one-by-one copying just by copying content of the directory.
Please review the patch attached. I was inspired by other efforts such as:

pwolanin’s picture

So, I'd agree this is generally a good idea, but most people will want a non-empty stopwords file from the upstream Solr project (or elsewhere).

Also, solrcore.properties shouldn't be required. If it is, maybe there is an error in recent config file changes.

mac_weber’s picture

@pwolanin I agree most people will want a non-empty stopwords file. However this is just the basic config needed to make the module run out of the box.

It takes time for beginners to realize why solr is not starting after copying the files provided by the module. Giving all files will save this pain. Everyone who wants to improve the configuration by editing the files will do it after installing and testing.

+1 for adding the empty files.

mac_weber’s picture

Status: Needs review » Reviewed & tested by the community

It is good to be merged.

pwolanin’s picture

Status: Reviewed & tested by the community » Needs work

Doesn't look like the documentation is complete. Also, if we expect them to have an existing Solr config directory, they don't need an empty mapping file.

I'm still not convinced that this change is helpful if creating an empty file is sufficient.

mac_weber’s picture

@pwolanin, do you mean adding documentation in each file explaining how they are supposed to be used later?

pwolanin’s picture

In the READMe certainly, maybe also in each file. But if suggesting to users that copying an empty latin mapping file is the right starting point - things won't function as expected. They can just create an empty file if they somehow can't find a copy of the one that comes with Solr.