Class: Elasticsearch::DSL::Search::Queries::SimpleQueryString

Inherits:
Object
  • Object
show all
Includes:
BaseComponent
Defined in:
lib/elasticsearch/dsl/search/queries/simple_query_string.rb

Overview

A query which returns documents matching a simplified query string syntax

Examples:


search do
  query do
    simple_query_string do
      query  'disaster -health'
      fields ['title^5', 'abstract', 'content']
      default_operator 'and'
    end
  end
end

See Also:

Method Summary

Methods included from BaseComponent

included, #initialize