The following situation:
Asset Model:
searchable do text :title text :description time :created_at integer :category_ids, :multiple => true, :references => Category end
Controller:
search = Asset.search() do keywords(h(params[:query]), :fields => [:title, :description]) facet(:category_ids) order_by :created_at end
I would like to sort my cell: Category_ides not in: count (number of hits). Categories must be ordered with the created_at command. Look at the documentation facet (: category_ids ,: sort =>: count ||: index). both options will not work for me.
How can I solve this order problem for facets?
Chris source share