Search code examples
solrsolr-schema

Solr - Can't search when term ends with "y"


This problem seems really ridiculous. I always get 0 results when searching for entries that end with "y". I know they exist.

0 Results:

  • Barthy
  • Tony
  • Maxy

x Results:

  • Barth
  • Ton
  • Max

With any of the last three I get the desired results (Barthy B, Tony Banderas, Maxy Doe, ...)

Words that contain but don't end with "y" are totally fine (Rayman, ...)

What is happening? Could something like this be achieved with the schema (if yes, how? So that I can search for it)

Any other idea where to start looking?


Solution

  • Remove the PorterStemFilterFactory or SnowballPorterFilterFactory from the fieldType.

    As porter is a transforming algorithm for English language that reduces any of the forms of a word such as walks, walked to walk.