Can we have morphology at field level?

23 views
Skip to first unread message

Naveed Rehman

unread,
Oct 28, 2011, 5:19:02 AM10/28/11
to thinkin...@googlegroups.com
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?

Pat Allan

unread,
Nov 2, 2011, 6:30:52 AM11/2/11
to thinkin...@googlegroups.com
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 thinkin...@googlegroups.com.
> To unsubscribe from this group, send email to thinking-sphi...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/thinking-sphinx?hl=en.

Reply all
Reply to author
Forward
0 new messages