class Google::Apis::CloudsearchV1::FacetOptions
Specifies operators to return facet results for. There will be one FacetResult
for every source_name/object_type/operator_name combination.
Attributes
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` @return [Fixnum]
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` @return [String]
Name
of the operator chosen for faceting. @see cloudsearch. SchemaPropertyOptions Corresponds to the JSON property `operatorName` @return [String]
Source
name to facet on. Format: datasources/`source_id` If empty, all data sources will be used. Corresponds to the JSON property `sourceName` @return [String]
Public Class Methods
# File lib/google/apis/cloudsearch_v1/classes.rb, line 1111 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/cloudsearch_v1/classes.rb, line 1116 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