Class: Elasticsearch::DSL::Search::Queries::Prefix

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

Overview

A query which returns documents matching a specified prefix

search do

query do
  prefix :title do
    value 'dis'
  end
end

end

Method Summary

Methods included from BaseComponent

included, #initialize