Hello everyone.

I'm working with Solr 4.3. I use the Spellechecker component which gives me
suggestions as i expect.

I will explain my problem with an example : 

I am querying /"cartouchhe"/instead of /"cartouche"/.

I obtain these suggestions 

array (size=5)
  0 => 
    array (size=2)
      'word' => *string 'cartouche' (length=9)*
      'freq' => *int 1519*
  1 => 
    array (size=2)
      'word' => *string 'touches' (length=7)*
      'freq' =>* int 55*
  2 => 
    array (size=2)
      'word' => *string 'cartouches' (length=10)*
      'freq' =>*int 32*
  3 => 
    array (size=2)
      'word' =>* string 'caoutchoucs' (length=11)*
      'freq' =>* int 16*
  4 => 
    array (size=2)
      'word' => *string 'cartonnees' (length=10)*
      'freq' =>* int 15*

This is what I want ==> OK.

The problem is that when I query /"cartouche"/or /"cartouches"/, I exactly
have the same results because for both query, the term that will be
searching into my index is /"cartouch"/.

Is there a way with Solr to fix this kind of "problem" ie check that 2
collations will not return exactly the same results?

Thanks for your answers,
Alex.



--
View this message in context: 
http://lucene.472066.n3.nabble.com/Check-the-return-of-suggestions-tp4191383.html
Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to