After doing some more reading on facets-- I am wondering if this is
really the wrong way to go.  From what I can tell, the point of facets
is to get a quick breakdown of how many records have similar values,
and then drill down from there.. ?  The app that I am working on had
most all of the TS code written before I joined the team..  And it
looks like facets is the only method called for any sort of retrieval
of records...  I am thinking perhaps TS isn't being used
appropriately-- For example, the index action does:

@posts = Post.facets(:conditions => { :title =>
params[:title], :description => params[:description] } ).for

...

So in this context, there's no real reason to be using facets, right?
That should just be a regular search method call, right?

@posts = Post.search(:conditions => { :title =>
params[:title], :description => params[:description] } )

...  But still am wondering how should I add "TIMESTAMPDIFF(SECOND,
posts.created_at, (SELECT DATE_ADD(NOW(), INTERVAL 3 HOUR))) as
difference" to this search call?

-- 
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