Class: Chewy::Search::Parameters::Query

Inherits:
Storage show all
Includes:
QueryStorage
Defined in:
lib/chewy/search/parameters/query.rb

Overview

A standard parameter storage, which updates query parameter of the ES request.

Examples:

PlacesIndex.query(match: {name: 'Moscow'})
# => <PlacesIndex::Query {..., :body=>{:query=>{:match=>{:name=>"Moscow"}}}}>

See Also:

Instance Attribute Summary

Attributes inherited from Storage

#value

Method Summary

Methods included from QueryStorage

#and, #merge!, #minimum_should_match, #must, #must_not, #not, #or, #render, #should, #update!

Methods inherited from Storage

#==, #initialize, #merge!, #render, #replace!, #update!

Constructor Details

This class inherits a constructor from Chewy::Search::Parameters::Storage