I'm using Rails3 , sphinx 9.9.0, thinking_sphinx 2.0.0rc1
Tried both in Postgres and MySQL.
Somehow I couldn't get a simple attribute filter to work. I've new to
sphinx but I've used Solr before.
I'm searching with:
Company.search :with => {:postcode => "2000"}
>returns []
class Company < ActiveRecord::Base
define_index do
indexes "lower(companies.company_name)", :as => :name, :sortable
=> true
has postcode
group_by "companies.company_name", "postcode"
end
end
I can't see anything wrong in particular comparing with the doc,
please enlighten me if there's something so obvious that I'm missing.
Thanks,
Rex.
--
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.