class Enums::ZeroTermsQuery

Enumerator class for zer terms query. If the analyzer used removes all tokens in a query like a stop filter does, the default behavior is to match no documents at all. In order to change that the zero_terms_query option can be used, which accepts none (default) and all which corresponds to a match_all query.

Constants

ZERO_TERMS_QUERY

@!visibility protected

Attributes

zero_term[R]

@!visibility protected

Public Class Methods

new(zero_term) click to toggle source

@!visibility protected

# File lib/enums/zero_terms_query.rb, line 33
def initialize(zero_term)
  @zero_term = zero_term
end