View Arck Interactive's plugins
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by RaĆ¼l Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.
i'm having some challenges here setting this up locally. first of all i found i couldn't even get solr to start - but i eventually found that the solr documentation is out of date and i had to add --module=http to the end of the startup command to get it to run at all.
so after running the instance and configuring the elgg admin page and the nginx config file, i got into the solr admin area - but now i am not clear on two things:
the log in the solr admin area currently outputs:
23/11/2016, 20:56:49
Check the updated docs in master on github. I ran into some issues as well and clairified the steps.
oh ok, thanks for the tip. so i have created a new core for my site within the same folder as the folders that exist for the other cores. i see there is a reference to checking that the 'schemeFactory' line is present in solrconfig.xml. i have added that within the <config> area, but i'm not sure if that's the right place or not.
now when i load the admin console for solr i see this error:
Check solr documentation, can't remeber off-hand.
it appears the problem is that the schema that comes with the elgg plugin was made for an earlier version of solr than i am using. i am using solr 6.3 here. i have found a few changes that needed to be made, such as inserting the characters 'Trie' in front of several of the field types:
now though i am stuck on this:
Plugin init failure for [schema.xml] fieldType "text_general": Plugin init failure for [schema.xml] analyzer/filter: Error instantiating class: 'org.apache.lucene.analysis.core.StopFilterFactory'
what version of solr are people using this plugin successfully with?
This plugin was built on Solr 4, and later updated to support Solr 5
I haven't tried 6 so if you figure out how to get it working please let me know. If it's a matter of urgency and you just need it to work maybe downgrade Solr to v5?
ok, understood - i'll see what i can do about upgrading schema.xml to solr 6.
well, i gave up on solr 6 for now, since i didn't find a detailed enough description of how to upgrade the schema. i have installed solr 5, created a core and got the elgg plugin to index the elgg entities (except for a small number of file entities that were missed). however, when i search in elgg i get no results. i looked in the logging area of solr and there are a lot of similar errors showing here with this message:
org.apache.solr.common.SolrException: can not sort on multivalued field: time_created
so i started again with this and made sure to include the changes to the solrconfig.xml file as listed in the readme for this plugin on github:
i then saw different errors logged in the solr logger that related to variable type declarations that had a pluralised 's' on the end - so 'boolean' was 'booleans' and so on. so i found this page on the web that explains that a section needs to be commented out from the solrconfig.xml file: http://stackoverflow.com/questions/31719955/solr-error-this-indexschema-is-not-mutable#31721587
so i did that and those errors went away. now though, i have a whole new set of errors:
i don't understand how this has not already come up for other users of elgg and solr... anyway, i continue
I have never encountered those errors... not sure what to tell you, it should "just work" with solr 5 - it currently is for many installations including this one :)
In case it's due to a change in the solr 5 branch, my local environment is running 5.2.1 and it works out of the box. Not sure what Arck production is running offhand, but I see the latest 5.x branch is 5.5.3 so perhaps something broke in the later releases of 5?
right ok, i was using the latest version of 5 so i'll go back to 5.2.1.
woo! 5.2.1 works, so i will test with that version for now.
ura soul can you please elaborate on your process? which version of the plugin did you use? what was you os?
I'm trying to run elgg_solr for three days now without success.. running solr 5.2.1 (tried later version before i saw this tread), tried the updated plugin from the github page and also this one...
"best" result i got is that the search on my elgg site gave no results at all
I'm running on a centos7 VM (locally for now)