Hi Raphael

To have this happen, you'll need to use multiple indexes in a model:

  define_index('model_with_morph') do
    # indexes, has
    set_property :morphology => 'metaphone'
  end

  define_index('model_without_morph') do
    # indexes, has
  end

And then in searching, direct your search to just one of the indexes (note that 
_core is automatically appended to the end of the index name):

  Model.search 'foo', :index => 'model_with_morph_core'

If you want to search on more than one index (say, if you've got a delta 
index), then you need to separate them by commas:

  Model.search 'foo', :index => 'model_with_morph_core,model_with_morph_delta'

Cheers

-- 
Pat

On 16/07/2010, at 2:00 AM, Raphael wrote:

> Is possible to do a specific search wihout a morphology and with
> morphology in config file set with metaphone?
> 
> Thanks
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Thinking Sphinx" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to 
> [email protected].
> For more options, visit this group at 
> http://groups.google.com/group/thinking-sphinx?hl=en.
> 

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

Reply via email to