lib/inquisitio/searcher.rb in inquisitio-1.4.1 vs lib/inquisitio/searcher.rb in inquisitio-1.5.0
- old
+ new
@@ -95,10 +95,16 @@
clone do |s|
s.params[:expressions] = value
end
end
+ def parser(value)
+ clone do |s|
+ s.params[:q_parser] = value
+ end
+ end
+
def per(value)
clone do |s|
s.params[:per] = value.to_i
end
end
@@ -180,9 +186,10 @@
size: params[:per],
start: params[:per] * (params[:page] - 1),
sort: params[:sort],
q_options: params[:q_options],
expressions: params[:expressions],
+ q_parser: params[:q_parser],
return_fields: return_fields
)
end
end