Hi Naveed

Unfortunately morphology is an index-level setting - but what you could try is 
having multiple indices, one with the fields in question, the other with all 
other fields. You'll need to have the same attributes in both, though. Just 
give at least one of the define_index blocks an explicit name:

  define_index('foo') do
    # metaphoned fields
    # attributes
    
    set_property :morphology => 'megaphone'
  end

  define_index('bar') do
    # other fields
    # attributes
  end

Give that a shot, let us know how it goes.

Cheers

-- 
Pat

On 28/10/2011, at 12:19 PM, Naveed Rehman wrote:

> I am indexing several fields but I want to apply morphology 'metaphone' at 
> field level not model level. I mean i just want to search sound alike words 
> (morphology) on just 1-2 fields. Can I do that in thinking sphinx?
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Thinking Sphinx" group.
> To view this discussion on the web visit 
> https://groups.google.com/d/msg/thinking-sphinx/-/JLleQThpM60J.
> 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