Solr 7.x and Moodle

Solr 7.x and Moodle

by Igor Sazonov -
Number of replies: 3

Hi, guys!

As i see in Solr 7.x there are changes at fields types, type int is deprecated to pint, but Moodle-based search plugin uses int type

Source: https://lucene.apache.org/solr/guide/7_0/field-types-included-with-solr.html

Am i right?

Average of ratings: -
In reply to Igor Sazonov

Re: Solr 7.x and Moodle

by sam marshall -
Picture of Core developers Picture of Peer reviewers Picture of Plugin developers

The schema currently uses a type name 'int' which is defined, when you install on Solr 6, as an org.apache.solr.schema.TrieIntField.

Looking at the docs I'm not clear whether this type name 'int' would be defined on Solr 7 as the new IntPointField. You could find out by installing a Solr 7, connecting Moodle to it and having it define the schema, then looking in 'managed-schema' file within the configuration for a line like:

<fieldType name="int" class="solr.TrieIntField" positionIncrementGap="0" docValues="true" precisionStep="0"/>

Maybe that would be different in Solr 7? I'm not quite clear how the schema installation works and I don't have time to try right now....

--sam
In reply to sam marshall

Re: Solr 7.x and Moodle

by Igor Sazonov -

Sam, i maked a track with solution https://tracker.moodle.org/browse/MDL-60759

Apache Solr 7.1.0 was released not so far away (Nov-2-2017), so there are only few users of this version at the moment. And they maked Trie* types as deprecated against v6 or lower: http://lucene.apache.org/solr/7_1_0/changes/Changes.html#v7.0.0.upgrading_from_solr_6.x

You can take a look for track with solution

In reply to Igor Sazonov

Re: Solr 7.x and Moodle

by Amar Bl -

Hi Igor Sazonov,

Thanks for the information. The information you provided regarding Solr 7.x is very helpful for me.

Thank you