Class: Google::Apis::CloudsearchV1::FacetOptions
- Inherits:
-
Object
- Object
- Google::Apis::CloudsearchV1::FacetOptions
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/cloudsearch_v1/classes.rb,
lib/google/apis/cloudsearch_v1/representations.rb,
lib/google/apis/cloudsearch_v1/representations.rb
Overview
Specifies operators to return facet results for. There will be one FacetResult for every source_name/object_type/operator_name combination.
Instance Attribute Summary collapse
-
#num_facet_buckets ⇒ Fixnum
Maximum number of facet buckets that should be returned for this facet.
-
#object_type ⇒ String
If object_type is set, only those objects of that type will be used to compute facets.
-
#operator_name ⇒ String
The name of the operator chosen for faceting.
-
#source_name ⇒ String
Source name to facet on.
Instance Method Summary collapse
-
#initialize(**args) ⇒ FacetOptions
constructor
A new instance of FacetOptions.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ FacetOptions
Returns a new instance of FacetOptions.
1510 1511 1512 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 1510 def initialize(**args) update!(**args) end |
Instance Attribute Details
#num_facet_buckets ⇒ Fixnum
Maximum number of facet buckets that should be returned for this facet.
Defaults to 10. Maximum value is 100.
Corresponds to the JSON property numFacetBuckets
1490 1491 1492 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 1490 def num_facet_buckets @num_facet_buckets end |
#object_type ⇒ String
If object_type is set, only those objects of that type will be used to compute
facets. If empty, then all objects will be used to compute facets.
Corresponds to the JSON property objectType
1496 1497 1498 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 1496 def object_type @object_type end |
#operator_name ⇒ String
The name of the operator chosen for faceting. @see cloudsearch.
SchemaPropertyOptions
Corresponds to the JSON property operatorName
1502 1503 1504 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 1502 def operator_name @operator_name end |
#source_name ⇒ String
Source name to facet on. Format: datasources/source_id If empty, all data
sources will be used.
Corresponds to the JSON property sourceName
1508 1509 1510 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 1508 def source_name @source_name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1515 1516 1517 1518 1519 1520 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 1515 def update!(**args) @num_facet_buckets = args[:num_facet_buckets] if args.key?(:num_facet_buckets) @object_type = args[:object_type] if args.key?(:object_type) @operator_name = args[:operator_name] if args.key?(:operator_name) @source_name = args[:source_name] if args.key?(:source_name) end |