Skip to content

Instantly share code, notes, and snippets.

View zauzaj's full-sized avatar

Bojan Jordanovski zauzaj

  • Belgrade
View GitHub Profile
@zauzaj
zauzaj / gist:55eb30d75346daf4791546c5e8b8c01b
Created July 21, 2019 13:17
Set parameter inside DSL::Search::Bool instead of sending as parameter
module Search
module Sections
module Base
class SectionOnline < Search::Sections::Base::SectionBas
private
def payload
section = self
Elasticsearch::DSL::Search.search do
size 500
parameter = @parameter