Global search with Solr in Moodle 3.1

Global search with Solr in Moodle 3.1

by Mickaël PANNEQUIN -
Number of replies: 3

Hi all,

I've got a problem with this feature. I've installed Solr (solr-spec 5.2.1) with success and created a core named moodle31.

But when i setup the search engine, i've got this error :

Error validating Solr schema: field itemid does not exist. Please follow this link to set up the required fields.

and when i click on the link to set up the requiered fields, i've got this error :

Error creating the Solr schema:

Anyone can help me please ?

Thanks.


// Moodle 3.1 (Build: 20160523)

Average of ratings: -
In reply to Mickaël PANNEQUIN

Re: Global search with Solr in Moodle 3.1

by David Monllaó -

Hi Mickaël,

Have you found more info about the problem in the error log?

We use Solr's schema API to set up in your solr index the fields moodle needs to index its data. Ensure schema api is enabled and available to the moodle server and that you set the correct index name in solr config page. If you had any problem creating the index you can also try to create a new one and setup moodle to use it.

Average of ratings: Useful (1)
In reply to David Monllaó

Re: Global search with Solr in Moodle 3.1

by Mickaël PANNEQUIN -

Thanks David,

Finally, the problem is simple... when you create a collection with the command ./slor create -c moodle; you must be the solr user.

All it's ok now big grin


In reply to Mickaël PANNEQUIN

Re: Global search with Solr in Moodle 3.1

by Ivan Gorbachev -
The main reason is that the user 'solr' does not have access rights to this folder (/var/solr/data/moodle). In my case, because of the firewall