Hi,

I want to sort result by price, but the result are mixed / strange.

I have Product and ProductWebsite
Each product has a different sku / name / price on each website.

This is my define_index :

  define_index do
    indexes product_websites.sku, :as => :sku
    indexes product_websites.name, :as => :name

    has product_websites.status, :as => :status_attr
    has manufacturers_id, :as => :brand_id_attr, :facet => true
    has product_websites.regular_price_ht, :as=> :price
    has product_websites.website_id, :as=> :pw_website_id
  end

How can i handle sort on price ? The only way I search product is by 
website but how can i do that ?

-- 
You received this message because you are subscribed to the Google Groups 
"Thinking Sphinx" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/thinking-sphinx.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to