# Retail v2 API - Class CatalogAttribute.Types.FacetConfig.Types.RerankConfig (2.16.0)

<button class="button button-with-icon cloud-select-dropdown__button " aria-haspopup="true">Version latest</button>

- [2.16.0 (latest)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Retail.V2/latest/Google.Cloud.Retail.V2.CatalogAttribute.Types.FacetConfig.Types.RerankConfig)
- [2.15.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Retail.V2/2.15.0/Google.Cloud.Retail.V2.CatalogAttribute.Types.FacetConfig.Types.RerankConfig)
- [2.14.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Retail.V2/2.14.0/Google.Cloud.Retail.V2.CatalogAttribute.Types.FacetConfig.Types.RerankConfig)
- [2.13.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Retail.V2/2.13.0/Google.Cloud.Retail.V2.CatalogAttribute.Types.FacetConfig.Types.RerankConfig)
- [2.12.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Retail.V2/2.12.0/Google.Cloud.Retail.V2.CatalogAttribute.Types.FacetConfig.Types.RerankConfig)
- [2.11.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Retail.V2/2.11.0/Google.Cloud.Retail.V2.CatalogAttribute.Types.FacetConfig.Types.RerankConfig)
- [2.10.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Retail.V2/2.10.0/Google.Cloud.Retail.V2.CatalogAttribute.Types.FacetConfig.Types.RerankConfig)
- [2.9.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Retail.V2/2.9.0/Google.Cloud.Retail.V2.CatalogAttribute.Types.FacetConfig.Types.RerankConfig)
- [2.8.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Retail.V2/2.8.0/Google.Cloud.Retail.V2.CatalogAttribute.Types.FacetConfig.Types.RerankConfig)
- [2.7.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Retail.V2/2.7.0/Google.Cloud.Retail.V2.CatalogAttribute.Types.FacetConfig.Types.RerankConfig)
- [2.6.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Retail.V2/2.6.0/Google.Cloud.Retail.V2.CatalogAttribute.Types.FacetConfig.Types.RerankConfig)
- [2.5.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Retail.V2/2.5.0/Google.Cloud.Retail.V2.CatalogAttribute.Types.FacetConfig.Types.RerankConfig)
- [2.4.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Retail.V2/2.4.0/Google.Cloud.Retail.V2.CatalogAttribute.Types.FacetConfig.Types.RerankConfig)
- [2.3.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Retail.V2/2.3.0/Google.Cloud.Retail.V2.CatalogAttribute.Types.FacetConfig.Types.RerankConfig)
- [2.2.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Retail.V2/2.2.0/Google.Cloud.Retail.V2.CatalogAttribute.Types.FacetConfig.Types.RerankConfig)
- [2.1.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Retail.V2/2.1.0/Google.Cloud.Retail.V2.CatalogAttribute.Types.FacetConfig.Types.RerankConfig)
- [2.0.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Retail.V2/2.0.0/Google.Cloud.Retail.V2.CatalogAttribute.Types.FacetConfig.Types.RerankConfig)
- [1.6.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Retail.V2/1.6.0/Google.Cloud.Retail.V2.CatalogAttribute.Types.FacetConfig.Types.RerankConfig)
- [1.5.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Retail.V2/1.5.0/Google.Cloud.Retail.V2.CatalogAttribute.Types.FacetConfig.Types.RerankConfig)
- [1.4.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Retail.V2/1.4.0/Google.Cloud.Retail.V2.CatalogAttribute.Types.FacetConfig.Types.RerankConfig)
- [1.3.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Retail.V2/1.3.0/Google.Cloud.Retail.V2.CatalogAttribute.Types.FacetConfig.Types.RerankConfig)
- [1.2.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Retail.V2/1.2.0/Google.Cloud.Retail.V2.CatalogAttribute.Types.FacetConfig.Types.RerankConfig)
- [1.1.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Retail.V2/1.1.0/Google.Cloud.Retail.V2.CatalogAttribute.Types.FacetConfig.Types.RerankConfig)
- [1.0.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Retail.V2/1.0.0/Google.Cloud.Retail.V2.CatalogAttribute.Types.FacetConfig.Types.RerankConfig)

    public sealed class CatalogAttribute.Types.FacetConfig.Types.RerankConfig : IMessage<CatalogAttribute.Types.FacetConfig.Types.RerankConfig>, IEquatable<CatalogAttribute.Types.FacetConfig.Types.RerankConfig>, IDeepCloneable<CatalogAttribute.Types.FacetConfig.Types.RerankConfig>, IBufferMessage, IMessage

Reference documentation and code samples for the Retail v2 API class CatalogAttribute.Types.FacetConfig.Types.RerankConfig.

Options to rerank based on facet values engaged by the user for the
current key. That key needs to be a custom textual key and facetable.
To use this control, you also need to pass all the facet keys engaged by
the user in the request using the field \[SearchRequest.FacetSpec\]. In
particular, if you don't pass the facet keys engaged that you want to
rerank on, this control won't be effective. Moreover, to obtain better
results, the facet values that you want to rerank on should be close to
English (ideally made of words, underscores, and spaces).

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> CatalogAttribute.Types.FacetConfig.Types.RerankConfig

## Implements

[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[CatalogAttribute](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Retail.V2/latest/Google.Cloud.Retail.V2.CatalogAttribute)[Types](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Retail.V2/latest/Google.Cloud.Retail.V2.CatalogAttribute.Types)[FacetConfig](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Retail.V2/latest/Google.Cloud.Retail.V2.CatalogAttribute.Types.FacetConfig)[Types](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Retail.V2/latest/Google.Cloud.Retail.V2.CatalogAttribute.Types.FacetConfig.Types)[RerankConfig](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Retail.V2/latest/Google.Cloud.Retail.V2.CatalogAttribute.Types.FacetConfig.Types.RerankConfig), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[CatalogAttribute](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Retail.V2/latest/Google.Cloud.Retail.V2.CatalogAttribute)[Types](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Retail.V2/latest/Google.Cloud.Retail.V2.CatalogAttribute.Types)[FacetConfig](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Retail.V2/latest/Google.Cloud.Retail.V2.CatalogAttribute.Types.FacetConfig)[Types](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Retail.V2/latest/Google.Cloud.Retail.V2.CatalogAttribute.Types.FacetConfig.Types)[RerankConfig](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Retail.V2/latest/Google.Cloud.Retail.V2.CatalogAttribute.Types.FacetConfig.Types.RerankConfig), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[CatalogAttribute](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Retail.V2/latest/Google.Cloud.Retail.V2.CatalogAttribute)[Types](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Retail.V2/latest/Google.Cloud.Retail.V2.CatalogAttribute.Types)[FacetConfig](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Retail.V2/latest/Google.Cloud.Retail.V2.CatalogAttribute.Types.FacetConfig)[Types](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Retail.V2/latest/Google.Cloud.Retail.V2.CatalogAttribute.Types.FacetConfig.Types)[RerankConfig](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Retail.V2/latest/Google.Cloud.Retail.V2.CatalogAttribute.Types.FacetConfig.Types.RerankConfig), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html)

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.Retail.V2](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Retail.V2/latest/Google.Cloud.Retail.V2)

## Assembly

Google.Cloud.Retail.V2.dll

## Constructors

### RerankConfig()

    public RerankConfig()

### RerankConfig(RerankConfig)

    public RerankConfig(CatalogAttribute.Types.FacetConfig.Types.RerankConfig other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Retail.V2/latest/Google.Cloud.Retail.V2.CatalogAttributehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Retail.V2/latest/Google.Cloud.Retail.V2.CatalogAttribute.Typeshttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Retail.V2/latest/Google.Cloud.Retail.V2.CatalogAttribute.Types.FacetConfighttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Retail.V2/latest/Google.Cloud.Retail.V2.CatalogAttribute.Types.FacetConfig.Typeshttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Retail.V2/latest/Google.Cloud.Retail.V2.CatalogAttribute.Types.FacetConfig.Types.RerankConfig` |

## Properties

### FacetValues

    public RepeatedField<string> FacetValues { get; }

If empty, rerank on all facet values for the current key. Otherwise,
will rerank on the facet values from this list only.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.Collections.RepeatedField-1.htmlhttps://learn.microsoft.com/dotnet/api/system.string` |   |

### RerankFacet

    public bool RerankFacet { get; set; }

If set to true, then we also rerank the dynamic facets based on the
facet values engaged by the user for the current attribute key during
serving.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.boolean` |   |