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

num_facet_buckets[RW]

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]

object_type[RW]

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]

operator_name[RW]

Name of the operator chosen for faceting. @see cloudsearch. SchemaPropertyOptions Corresponds to the JSON property `operatorName` @return [String]

source_name[RW]

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

new(**args) click to toggle source
# File lib/google/apis/cloudsearch_v1/classes.rb, line 1111
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

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