Class: OpenSearch::DSL::Search::Filters::Script

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

Overview

A filter which returns documents matching the criteria defined with a script

Examples:


search do
  query do
    filtered do
      filter do
        script script: "doc['clicks'].value % 4 == 0"
      end
    end
  end
end

See Also:

Method Summary

Methods included from BaseComponent

included, #initialize