Index Definitions
Index definitions specify the data type, content, and searchability of indexed data in Ucommerce.
Default index definitions
Customizing an index definition
public class CustomProductIndexDefinition : DefaultProductsIndexDefinition
{
public CustomProductIndexDefinition()
{
this.Field(p => p["Color"], typeof(UserDefinedEnum));
this.Field(p => p["Coupons"], typeof(UserDefinedEnum));
this.Field(p => p["Downloadable"], typeof(bool));
this.Field(p => p.ShortDescription)
.Exclude();
this.Field(p => p.PricesInclTax["EUR 15 pct"]);
}
}Enum fields
Multi-value fields
Translation of values
Last updated