This is what I do:

@search = Parts.search (... )

then
fits_search = Fits.search(...)
@search = @search | fits_search

The "|" merges arrays together.  so parts results will be first, then fits
search is appended to the end.

Jeremy

 *Jeremy Peterson*
 *Applications Developer*



On Thu, Jan 7, 2010 at 10:22 PM, ct9a <[email protected]> wrote:

> hmmm no good.
> The search is usually done on the parts models using thinking sphinx.
>
> Since the 'fit' models are to be  searched by thinking sphinx, how to
> append the results of fit to parts?
>
> here's the algorithm:
>
> @search = Parts.search (... )
>
> then
> @search = @search + Fits.search (...).   <-- what's a valid ruby
> syntax to achieve this?
>
> 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]<thinking-sphinx%[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