Class: Couchbase::Cluster::SearchFacet

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

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:

[View source]

1210
1211
1212
# File 'lib/couchbase/search_options.rb', line 1210

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

.numeric_range(field_name, &block) ⇒ SearchFacetNumericRange

Parameters:

  • field_name (String)

Returns:

[View source]

1204
1205
1206
# File 'lib/couchbase/search_options.rb', line 1204

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

.term(field_name, &block) ⇒ SearchFacetTerm

Parameters:

  • field_name (String)

Returns:

[View source]

1198
1199
1200
# File 'lib/couchbase/search_options.rb', line 1198

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