Hi,
I have a field indexed in the following way:
class Order < ActiveRecord::Base
has_many :items
define_index do
indexes items.code, :as => :items_code
set_property :min_infix_len => 2
end
end
and I have min_word_len: 3 in sphinx.yml
The 'code' attribute for the
'item' model will have contents like the following: 12.34567
Always 2 digits, a dot and then 5 more digits.
When I search for "*34*" TS finds the correct records, but if I search for
"*12*", don't. I don't know if the dot has any special meaning for Sphinx,
but it seems that's the cause of my problems... Also, searching for
"12.34567" also fails, seems like Sphinx is searching for "12" and them
"34567" or something like that. "12" is less than 3 chars, so I get no
results...
Any ideas about how to solve it?
Thanks!
When I search for what
--
Cássio Marques
Blog: http://cassiomarques.wordpress.com
If you're writing code and you're not testing it, the code is wrong. I don't
care if it does the right thing, and people need to understand this. If it
works by accident, you're still wrong.
Bryan Liles - Ruby Hoedown 2008
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---