var result = ElasticClientSingleton.WriteInstance.CreateIndex(IndexName, d => d.Settings(s => s.
Analysis(a => a.
Analyzers(ad => ad.
Snowball("pluralwordsAnalyzer", descriptor => descriptor.
Language(SnowballLanguage.English))
))).
Mappings(dd => dd.Map<ItemSearchEntry>(m => m.AutoMap()
.Properties(o => o.Text(mf => mf
.Name(s => s.ShortDescription)
.Index()
.Fields(f => f
.Text(s => s.Name(oo => oo.ShortDescription.Suffix("raw")).Index())
.Text(s => s.Name(oo => oo.ShortDescription).SearchAnalyzer("pluralwordsAnalyzer").Analyzer("pluralwordsAnalyzer"))
)
)
)
)));
I am adding snowball analyzer at the time of Indexing records. When I search for apple, i get only 1 document and when I search for apples i get 3 documents. I should get 4 documents when i search for apple or apples. Not sure where I am going wrong.