Sorry but after deep checking, I notice something strange.
First, I have min_infix_len => 10 on customer unique_id. But when i search,
it can only search when I add *, which mean User.search('abc123def4*') have
value and User.search('abc123def4') don't. In my opinion, infix and
wildcard * is 2 different things, right?
Second, follow search way from above, i can search
User.search('abc123def4*') but can't search User.search('*c123def456')
Third, min_infix_len is 10, but i can search with User.search('abc*')
On Tuesday, October 22, 2013 6:04:55 PM UTC+7, Duy Vo wrote:
>
> Hi (again)
> I read some post about wildcard search in
> FAQ<http://pat.github.io/thinking-sphinx/common_issues.html#wildcards>
> and
> here<http://blog.wyeworks.com/2009/4/20/wildcard-search-with-thinking-sphinx/>.
>
> Here are my index
>
> ThinkingSphinx::Index.define :user, :with => :real_time do
>> indexes username, unique_id
>> has company_id, :type => :integer
>> set_property :enabled_star => 1
>> set_property :min_infix_len => 10
>> end
>
>
> Regenerate success but i can't search using wildcard.
> User.search('abc123def456') return the user but User.search('abc123def4*')
> return [].
> Is the config for wildcard work for realtime index? or is it change
> recently. Thank you
>
--
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.
For more options, visit https://groups.google.com/groups/opt_out.