General developer forum

Global Search and accents

Picture of Murilo Timo Neto
Global Search and accents

Hello everyone

I wanted to help with the development of the global search for moodle,
I'm having problems with accents.

The global search is not ignoring accents,

The search for fisica should also return the words Física or fisica
Or the search for joao should return joão

I believe the best way to resolve this is by adding the filters to the text fields:

            <Filter class = "solr.LowerCaseFilterFactory" />
            <Filter class = "solr.ASCIIFoldingFilterFactory" />

Is this a good solution?

Or is there any simpler solution in solr configuration?

Average of ratings: -
Picture of Michal Pomykacz
Re: Global Search and accents

Hi Murilo!

where (or which file) exactly did you place that filters?


Average of ratings: -