Class: OpenSearch::DSL::Search::Queries::Regexp

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

Overview

A query which matches documents matching a regular expression

Examples:


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

See Also:

Method Summary

Methods included from BaseComponent

included, #initialize