Class: Elasticsearch::DSL::Search::Aggregations::SignificantText

Inherits:
Object
  • Object
show all
Includes:
BaseAggregationComponent
Defined in:
lib/elasticsearch/dsl/search/aggregations/significant_text.rb

Overview

An aggregation that returns interesting or unusual occurrences of free-text terms in a set.

Examples:


search do
  query do
    match :title do
      query 'fink'
    end
  end

  aggregation :interesting_terms do
    significant_text do
      field :body
    end
  end
end

See Also:

Method Summary

Methods included from BaseAggregationComponent

included