MongoDB - Full Text Index - Full Text Search - stemming

后端 未结 1 1894
一个人的身影
一个人的身影 2021-01-24 03:18

I noticed that if I enter the value \'seasons\' in a full text search enabled string field of some collection, then MongoDB finds this value when I query for \'season\'. But if

相关标签:
1条回答
  • 2021-01-24 04:02

    MongoDB uses the Snowball stemming library. Unfortunately, this looks to be one of the limitations of this library.

    You can see the pages for the english stemmer here. Compare the vocabulary + stemmed equivalent page and you can see "Mouse" becoming "Mous" and "Mice" still remaining "Mice".

    You can see MongoDB's use of Snowball in their codebase here and here

    0 讨论(0)
提交回复
热议问题