Class: Elasticsearch::DSL::Search::Queries::Common

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

Overview

A query which executes the search for low frequency terms first, and high frequency (“common”) terms second

This query is frequently used when a stopwords-based approach loses too much recall and/or precision.

Examples:


search do
  query do
    common :body do
      query 'shakespeare to be or not to be'
    end
  end
end

See Also:

Method Summary

Methods included from BaseComponent

included, #initialize