Class: Elasticsearch::DSL::Search::Filters::Prefix

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

Overview

A filter which returns documents where the field value a specified prefix

Examples:


search do
  query do
    filtered do
      filter do
        prefix path: '/usr/local'
      end
    end
  end
end

See Also:

Method Summary

Methods included from BaseComponent

included, #initialize