Hi John Paul
The issue here is you're using an attribute for a string. Sphinx doesn't allow
filtering on string attributes, I'm afraid:
http://freelancing-god.github.com/ts/en/common_issues.html#string_filters
--
Pat
On 20/01/2012, at 3:41 AM, John Paul wrote:
> I am using sphinx and I have a field called "type" in my table. I need
> to add a :with => { :type => 'Product' } but get 0 results when
> searching via sphinx.
>
> I assume this is a reserved field so how can I get around this? I
> tried
>
> has type, :as => :product_type,
> has "type", :as => :product_type,
> has :type, :as => :product_type,
>
> With no success. Any suggestions?
>
> --
> 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.