module OpenSearch::DSL

The main module, which can be included into your own class or namespace, to provide the DSL methods.

@example

include OpenSearch::DSL

definition = search do
  query do
    match title: 'test'
  end
end

definition.to_hash
# => { query: { match: { title: "test"} } }

@see Search

Constants

VERSION

Public Class Methods

included(base) click to toggle source
# File lib/opensearch/dsl.rb, line 68
def self.included(base)
  base.__send__ :include, OpenSearch::DSL::Search
end