Class GoogleCloudDiscoveryengineV1betaSearchRequestCrowdingSpec
Specification for crowding. Crowding improves the diversity of search results by limiting the number of results that share the same field value. For example, crowding on the color field with a max_count of 3 and mode DROP_CROWDED_RESULTS will return at most 3 results with the same color across all pages.
Implements
Inherited Members
Namespace: Google.Apis.DiscoveryEngine.v1.Data
Assembly: Google.Apis.DiscoveryEngine.v1.dll
Syntax
public class GoogleCloudDiscoveryengineV1betaSearchRequestCrowdingSpec : IDirectResponseSchema
Properties
ETag
The ETag of the item.
Declaration
public virtual string ETag { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Field
The field to use for crowding. Documents can be crowded by a field in the Document object. Crowding field is case sensitive.
Declaration
[JsonProperty("field")]
public virtual string Field { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
MaxCount
The maximum number of documents to keep per value of the field. Once there are at least max_count previous
results which contain the same value for the given field (according to the order specified in order_by),
later results with the same value are "crowded away". If not specified, the default value is 1.
Declaration
[JsonProperty("maxCount")]
public virtual int? MaxCount { get; set; }
Property Value
| Type | Description |
|---|---|
| int? |
Mode
Mode to use for documents that are crowded away.
Declaration
[JsonProperty("mode")]
public virtual string Mode { get; set; }
Property Value
| Type | Description |
|---|---|
| string |