Yup, that's because instead of just indexing every word as a word, Sphinx is 
also indexing every letter as a word. Increasing the min_infix_len value 
decreases the index file size.

-- 
Pat

On 10/08/2010, at 6:04 PM, nnn wrote:

> it not related to ts, but add min-infix-len: 1. the file become 56k,
> original jsut 18k. quite large.
> 
> On Aug 10, 11:57 am, Pat Allan <[email protected]> wrote:
>> I was wondering if that's what was missing. Good to know it's working  
>> now.
>> 
>> --
>> Pat
>> 
>> On 10/08/2010, at 1:48 PM, nnn <[email protected]> wrote:
>> 
>>> min-infix-len: 1
>>> solve the problem
>> 
>>> On Aug 10, 11:29 am, nnn <[email protected]> wrote:
>>>> define_index do
>>>>  indexes nick_name
>>>>  indexes login
>>>> end
>> 
>>>> On Aug 10, 11:25 am, nnn <[email protected]> wrote:
>> 
>>>>>>> User.search('ava', :star => true)
>> 
>>>>> => [#<User id: 6, login: "ersning", nick_name: "Ava", email:
>>>>> "[email protected]"]
>> 
>>>>>>> User.search('av', :star => true)
>> 
>>>>> => []
>> 
>>>>> I have two sphinx index in my project, above is the user model.
>>>>> when I want to fuzzy search, it doesn't work.but I have been enable
>>>>> enable_star: true in my sphinx.yml file. also I have a another  
>>>>> example
>>>>> in my computer, it work.
>> 
>>> --
>>> 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 
>>> athttp://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.
> 

-- 
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