Hi Hussein

You'll need to set each index's morphology property within the index definition:

  ThinkingSphinx::Index.define … do
    # fields, attributes, etc

    set_property :morphology => 'stem_en'
  end

Cheers

-- 
Pat

On 06/05/2013, at 3:57 AM, Hussein Samadi wrote:

> Hi,
> 
> I've created multiple indices for one of my AR models. So that I can use 
> different morphology option for each one of them. (a stemmer for one and a 
> phonetic algorithm for the the other, to be exact). But, I don't know how I 
> can do that. I've tried following configuration in thinking_sphinx.yml but it 
> didn't work.
> 
> development:
>   index_one:
>     morphology: stem_en
> 
>   index_two:
>     morphology: metaphone
> 
> So, any help would be appreciated.
> 
> Thanks
> 
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Thinking Sphinx" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/thinking-sphinx?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>  
>  


-- 
You received this message because you are subscribed to the Google Groups 
"Thinking Sphinx" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/thinking-sphinx?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to