class Chewy::Search::Parameters::None
Just a standard boolean storage, except the rendering logic.
@see Chewy::Search::Parameters::BoolStorage
@see Chewy::Search::Request#none @see en.wikipedia.org/wiki/Null_Object_pattern
Public Instance Methods
render()
click to toggle source
Renders ‘match_none` query if the values is set to true.
@see www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-match-all-query.html#query-dsl-match-none-query @see Chewy::Search::Request
@see Chewy::Search::Request#response
# File lib/chewy/search/parameters/none.rb, line 19 def render {query: {match_none: {}}} if value.present? end