views:

369

answers:

1

I am trying to get SpellChecker setup using Lucene.NET, it all works fine other than situations similar to the following:

I have text containing satellite in the index, I analyze it using Snowball.

I then create a SpellChecker index and get suggestions from it. The suggestion I get returned when passing in "Satalite" is "satellit".

I am assuming this is because Snowball is stemming Satellite down to satellit and hence SpellChecker is returning that as the suggestion.

Is there anyway around this so I can use the two together other than creating an additional field for non stemmed words just so the spell checker can check that?

A: 

As Shashikant mentioned above:

You are right, this happens due to stemming. Unfortunately, the stemmed words not meant only for search and outside search they can be meaningless. Even I don't know any other technique than storing it multiple times. That additional field can be configured to store as little information as possible to reduce the burden. – Shashikant Kore Dec 2 at 14:08

John_