Class: Couchbase::Cluster::SearchFacet

Inherits:
Object
  • Object
show all
Defined in:
lib/couchbase/search_options.rb

Defined Under Namespace

Classes: SearchFacetDateRange, SearchFacetNumericRange, SearchFacetTerm

Class Method Summary collapse

Class Method Details

.date_range(field_name, &block) ⇒ SearchFacetDateRange

Parameters:

  • field_name (String)

Returns:



1126
1127
1128
# File 'lib/couchbase/search_options.rb', line 1126

def self.date_range(field_name, &block)
  SearchFacetDateRange.new(field_name, &block)
end

.numeric_range(field_name, &block) ⇒ SearchFacetNumericRange

Parameters:

  • field_name (String)

Returns:



1120
1121
1122
# File 'lib/couchbase/search_options.rb', line 1120

def self.numeric_range(field_name, &block)
  SearchFacetNumericRange.new(field_name, &block)
end

.term(field_name, &block) ⇒ SearchFacetTerm

Parameters:

  • field_name (String)

Returns:



1114
1115
1116
# File 'lib/couchbase/search_options.rb', line 1114

def self.term(field_name, &block)
  SearchFacetTerm.new(field_name, &block)
end