Class: OpenSearch::DSL::Search::Filters::Regexp

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

Overview

A filter which returns documents matching the specified regular expression

Examples:


search do
  query do
    filtered do
      filter do
        regexp :path do
          value '^/usr/?.*/var'
        end
      end
    end
  end
end

See Also:

Method Summary

Methods included from BaseComponent

included, #initialize