The catch there is that Sphinx doesn't store strings as attributes - so unless 
they're integer/float/boolean/timestamps, you're out of luck, I think.

-- 
Pat

On 19/12/2009, at 12:19 PM, Steve H wrote:

> Hi Pat!
> 
> That's OK I guess.  I think we can push them into attributes as well
> if we have to.
> 
> -Steve
> 
> On Dec 18, 4:54 pm, Pat Allan <[email protected]> wrote:
>> Hi Steve
>> 
>> Unfortunately, Sphinx doesn't return field values, only attributes - so this 
>> isn't possible. Sorry.
>> 
>> --
>> Pat
>> 
>> On 19/12/2009, at 10:16 AM, Steve H wrote:
>> 
>> 
>> 
>>> OK so I'm aware that I can get to the sphinx_attributes hash like
>>> this:
>> 
>>> businesses = Business.search "Pizza"
>>> businesses.first.sphinx_attributes
>> 
>>> But we're putting in calculated values to fields that we want to do in
>>> batches and not in realtime.  So we want to be able to do something
>>> like:
>> 
>>> businesses.first.sphinx_fields["my_calculated_score"]
>> 
>>> Is this possible?
>> 
>>> -Steve
>> 
>>> --
>> 
>>> 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 
>>> athttp://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.
> 
> 

--

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.


Reply via email to