Hi Mark
At this point, Thinking Sphinx doesn't support filtering on string
attributes (because Sphinx doesn't either). I've had a patch submitted
that offers a workaround for this, but in the meantime, I'd switch
location to being a field, and using the :conditions hash instead.
indexes [city, state], :as => :location
Model.search :conditions => {:location => "San Francisco CA"}
Cheers
--
Pat
On 23/02/2009, at 6:24 PM, Mark wrote:
>
> Hi,
>
> I'm trying to filter on a merged location column. The index has the
> definition:
>
> has [:city, :state], :as => :location
>
> I'm trying to filter on with[:location] = 'San Francisco CA'.
>
> I've tried to do this a ton of different ways, but it never works.
> Can somebody post an example of the correct way to filter on a merged
> column?
>
> Thanks
>
> >
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---