Closed (fixed)
Project:
Apache Solr Common Configurations
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
22 Jan 2013 at 22:49 UTC
Updated:
30 Dec 2013 at 21:50 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
jon pughI couldn't get solr 3.6.2 to start without the following files:
We really should include these files in the solr-conf/3.x folder.
Comment #2
JvE commentedExperiencing same issue.
At first I thought removing solrcore.properties and the replication requestHandler would be enough, but those files are referenced from multiple points in the solrconfig.xml
Comment #3
drunken monkeyThe required files are distributed with Solr, in
example/solr/conf, so I don't think this problem is that pressing. However, it's of course possible it would be better to include them in the module. Or maybe placing a note in theINSTALL.txt?Comment #4
JvE commentedYeah, at the very least it needs to be noted somewhere obvious.
Using the example files is not recommended since they have dummy/example settings. So you want to customize or remove them unless you want searches for iPods and "foo bar" and such to perhaps act differently from what you expect.
Solr works fine without those files with the default solrconfig.xml
But since the provided solrconfig.xml does require them and the provided solrcore.properties even explicitly demands them I feel they should be either be provided (empty of example content) or be made optional.
Comment #5
drunken monkeyI'm moving this to the Common Configurations project, which is where we should probably change this.
I agree with you, the required config files should be packaged with the module, and not include (active, i.e., not out-commented) example settings. I just checked, for Solr 4.x you can't start the server without elevate.xml, stopwords.txt, synonyms.txt and mapping-ISOLatin1Accent.txt. We should really make those optional or include them in this project (and, subsequently, in our respective modules).
Comment #6
drunken monkeyAttached is a patch which would add those, along with (I hope) reasonable defaults and a bit of documentation.
Comment #7
drunken monkeyNick? Peter? Any opinions on this?
Comment #8
nick_vhHmm, this adds a bit of overhead when Solr decides to update those files but I suppose we could add it to the set of files we require.
Ever since I started working on the apachesolr modules there was a description in the readme.txt to copy the files from drupal in the solr core and you have to make sure you copy the default files also in that solr core.
reloaded can be one word I think? I actually did not realize that if it was present in the data dir it would reload.
Comment #9
drunken monkeyWhat do you mean? You mean when the format changes? Or just the default ones?
I think in the latter case ours could just stay the same, nearly all of them are empty anyways. The only one that could possibly use improvements from the default file is the mappings file.
Ah, you're right, wasn't aware of that. I guess explicitly mentioning this in the documentation files would be a solution, too, yes.
However, additionally providing ready-made ones with the modules would be better, in my opinion. Especially since the ones in Solr's example config have some dummy settings in there which could be annoying in a production environment, at least to a small degree.
I was surprised, too, but it clearly says so in the default
elevate.xmlfile. In fact, I just copy-pasted that part – that's also where the peculiar spelling of "reload" originates. We could of course change that, if you want.Comment #10
nick_vhTalked with Peter about this and he says it is more an issue of licensing. We could add empty files but then people would install the wrong files. GPL license and Apache licensed files might be a problem.
Stopwords could easily be emptied, same with elevate.xml (so do not include the apache license) but the problem is the character mapping document which is not so easily emptied. Perhaps we need to contact the Solr community to get closure for this.
Comment #11
drunken monkeyI'm pretty sure the Apache license should be compatible with GPL, and this site by the ASF suggests the same. But of course you could also contact some professional about it, or otherwise ask around. I understand that you should be careful with such legal problems.
Comment #12
drunken monkeyOK, I have to correct my previous statement: it seems that it won't be possible after all to include Apache-licensed files into Drupal.org projects. The problem is that the Apache license is compatible with GPLv3, but not with GPLv2. And since Drupal.org mandates that everything has to be released under GPLv2-or-later, this is a no-go.
(Source: This comment by Crell.)
So, here is a revised patch with all of the ASF's intellectual property removed, plus instructions that you should use the
mapping-ISOLatin1Accent.txtfile from Solr's example application.Could we please add that?
Comment #13
drunken monkeyAnd again, without the whitespace errors.
Comment #14
nick_vhCommitted. A bit annoying we couldn't copy the files but better to be safe :)