module Elasticsearch::DSL

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

@example

include Elasticsearch::DSL

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

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

@see Search @see www.elastic.co/guide/en/elasticsearch/guide/current/query-dsl-intro.html

Constants

VERSION

Public Class Methods

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