Class: Couchbase::SearchFacet

Inherits:
Object
  • Object
show all
Defined in:
lib/couchbase/search_options.rb,
/code/couchbase-ruby-client/lib/couchbase/search_options.rb

Defined Under Namespace

Classes: SearchFacetDateRange, SearchFacetNumericRange, SearchFacetTerm

Class Method Summary collapse

Class Method Details

.date_range(field_name) ⇒ SearchFacetDateRange

Parameters:

  • field_name (String)

Returns:



1272
1273
1274
# File 'lib/couchbase/search_options.rb', line 1272

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

.numeric_range(field_name) ⇒ SearchFacetNumericRange

Parameters:

  • field_name (String)

Returns:



1266
1267
1268
# File 'lib/couchbase/search_options.rb', line 1266

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

.term(field_name) ⇒ SearchFacetTerm

Parameters:

  • field_name (String)

Returns:



1260
1261
1262
# File 'lib/couchbase/search_options.rb', line 1260

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