Commit 583297aa18b96d0e678d408a9585966cc90157d9

Authored by Dylan Guedes
1 parent f382c168
Exists in error: Could not read b8e82215186a07298d27835f187adb84c8b77eb0 and in 42 other branches error: Could not read b8e82215186a07298d27835f187adb84c8b77eb0, error: Could not read b8e82215186a07298d27835f187adb84c8b77eb0, error: Could not read b8e82215186a07298d27835f187adb84c8b77eb0, error: Could not read b8e82215186a07298d27835f187adb84c8b77eb0, error: Could not read b8e82215186a07298d27835f187adb84c8b77eb0, error: Could not read b8e82215186a07298d27835f187adb84c8b77eb0, error: Could not read b8e82215186a07298d27835f187adb84c8b77eb0, error: Could not read b8e82215186a07298d27835f187adb84c8b77eb0, error: Could not read b8e82215186a07298d27835f187adb84c8b77eb0, error: Could not read b8e82215186a07298d27835f187adb84c8b77eb0, error: Could not read b8e82215186a07298d27835f187adb84c8b77eb0, error: Could not read b8e82215186a07298d27835f187adb84c8b77eb0, error: Could not read b8e82215186a07298d27835f187adb84c8b77eb0, error: Could not read b8e82215186a07298d27835f187adb84c8b77eb0, error: Could not read b8e82215186a07298d27835f187adb84c8b77eb0, error: Could not read b8e82215186a07298d27835f187adb84c8b77eb0, error: Could not read b8e82215186a07298d27835f187adb84c8b77eb0, error: Could not read b8e82215186a07298d27835f187adb84c8b77eb0, error: Could not read b8e82215186a07298d27835f187adb84c8b77eb0, error: Could not read b8e82215186a07298d27835f187adb84c8b77eb0, error: Could not read b8e82215186a07298d27835f187adb84c8b77eb0, error: Could not read b8e82215186a07298d27835f187adb84c8b77eb0, error: Could not read b8e82215186a07298d27835f187adb84c8b77eb0, error: Could not read b8e82215186a07298d27835f187adb84c8b77eb0, error: Could not read b8e82215186a07298d27835f187adb84c8b77eb0, error: Could not read b8e82215186a07298d27835f187adb84c8b77eb0, error: Could not read b8e82215186a07298d27835f187adb84c8b77eb0, error: Could not read b8e82215186a07298d27835f187adb84c8b77eb0, error: Could not read b8e82215186a07298d27835f187adb84c8b77eb0, error: Could not read b8e82215186a07298d27835f187adb84c8b77eb0, error: Could not read b8e82215186a07298d27835f187adb84c8b77eb0, error: Could not read b8e82215186a07298d27835f187adb84c8b77eb0, error: Could not read b8e82215186a07298d27835f187adb84c8b77eb0, error: Could not read b8e82215186a07298d27835f187adb84c8b77eb0, error: Could not read b8e82215186a07298d27835f187adb84c8b77eb0, error: Could not read b8e82215186a07298d27835f187adb84c8b77eb0, error: Could not read b8e82215186a07298d27835f187adb84c8b77eb0, error: Could not read b8e82215186a07298d27835f187adb84c8b77eb0, error: Could not read b8e82215186a07298d27835f187adb84c8b77eb0, error: Could not read b8e82215186a07298d27835f187adb84c8b77eb0, error: Could not read b8e82215186a07298d27835f187adb84c8b77eb0, error: Could not read b8e82215186a07298d27835f187adb84c8b77eb0

Merges test changes from filter branch

Signed-off-by: DylanGuedes <djmgguedes@gmail.com>
plugins/elasticsearch/helpers/elasticsearch_helper.rb
... ... @@ -48,7 +48,7 @@ module ElasticsearchHelper
48 48 begin
49 49 klass = model.to_s.classify.constantize
50 50 filter = (params[:filter] || "" ).to_sym
51   - query = get_query params[:query], klass: klass, sort_by: get_sort_by(params[:filter],klass), categories: params[:categories]
  51 + query = get_query params[:query], klass: klass, sort_by: get_sort_by(filter ,klass), categories: params[:categories]
52 52 klass.search(query, size: default_per_page(params[:per_page])).page(params[:page]).records
53 53 rescue
54 54 []
... ...