It seems to me that this is just the expected behavior of the FrenchAnalyzer
using the FrenchStemmer. I'm not familiar with the French language, but in
English words like running, runner, and runs are all stemmed down to "run"
as intended. I don't know what other words in French would stem down to
"franc", but wouldn't this be what you would want? If not, maybe experiment
with some of the other Analyzers to see if they give you what you need.

-Jay

On Thu, May 7, 2009 at 6:51 AM, Jonathan Mamou <ma...@il.ibm.com> wrote:

>
> Hi
> I have tried to run the following code
> package org.apache.solr.spelling;
>
> import org.apache.lucene.analysis.fr.FrenchAnalyzer;
>
>
> public class Test {
>
>      public static void main (String args[]) {
>            SpellingQueryConverter sqc = new SpellingQueryConverter();
>            sqc.analyzer = new FrenchAnalyzer();
>            System.out.println(sqc.convert("français"));
>      };
>
> }};
>
> I would expect to get [(français,0,8,type=<ALPHANUM>)]
> However I get [(fran,0,4,type=<ALPHANUM>), (ais,5,8,type=<ALPHANUM>)]
> Is there any issue with the support of special characters?
> Thanks
> Jonathan
>
>

Reply via email to