Class: OpenSearch::DSL::Search::Queries::QueryString

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

Overview

A query which returns documents matching a specified expression in the Lucene Query String syntax

Examples:


search do
  query do
    query_string do
      query '(mortgage OR (bank AND loan)) AND published_on:[2013-01-01 TO 2013-12-31]'
      fields [:title, :content]
    end
  end
end

See Also:

Method Summary

Methods included from BaseComponent

included, #initialize