I am having trouble getting the Ultrasphinx plug-in to filter search
results using the :filters parameter; searches that use the :query
parameter, however, work just fine. Every time I run a search using the
:filters parameter I receive the following error:

Ultrasphinx::UsageError:field "xxx" is invalid

Here is how my model is configured:

class Product
 is_indexed :fields => [ "code" ]
end

And here is an example search that fails with the above exception:

search = Ultrasphinx::Search.new(:filters => {:code => "test"})
search.run

And an example of a search that works just fine:

search = Ultrasphinx::Search.new(:query => "code:test")
search.run

I must be missing something simple.  Any help would be greatly
appreciated.  Thanks in advance.

Regards,
Jason
-- 
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" 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/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to