SOLR Plugin wildcards ngrams

SOLR Plugin wildcards ngrams

by A W -
Number of replies: 1

Installed SOLR 6.4 on a separate server, cores and index setup, plugin added to Moodle and connected to SOLR server, all working.

I note the search does not do partial words unless a wildcard is explicitly stated for example a course with "Engineering" in title does not show in a search for "engine". If you explicitly use "*" it does e.g. "engine*" however most people will, not unreasonably, assume it works in a Google-esque way i.e. anything they type will be searched.

Had a look around and found various articles about altering the ngrams in SOLR to include partial words i.e. :

<filter class="solr.EdgeNGramFilterFactory" minGramSize="2" maxGramSize="15" side="front"/>
after messing around trying to change SOLR 6.4 from auto managed schemas to manual schema.xml etc.. I've had little success. Does anyone know how to get Global Search via SOLR to search for partial words?

Thanks,

Alex

Average of ratings: -