Enum SolrCommonCatalogFields
- java.lang.Object
-
- java.lang.Enum<SolrCommonCatalogFields>
-
- com.broadleafcommerce.search.provider.solr.util.SolrCommonCatalogFields
-
- All Implemented Interfaces:
Serializable
,Comparable<SolrCommonCatalogFields>
public enum SolrCommonCatalogFields extends Enum<SolrCommonCatalogFields>
Enumeration of statically defined fields that might not be administered via the admin console. These are catalog-specifc, but common to both search and indexing. These are fields that are added by indexer components and/or filtered by search components that are not necessarily user defined.- Author:
- Kelly Tisdell (ktisdell)
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ALL_SKUS
All of the SKUs for a given Product.AVAILABLE_ONLINE
Is this product available online?ID
Constant indicating an ID field.INVENTORY_AVAILABLE_FOR_APPLICATION_SCOPES
Indicates the application IDs for which there is available inventory.INVENTORY_AVAILABLE_FOR_TENANT_SCOPE
Indicates if availability exists for this tenant (exclusive of application scoped availability).INVENTORY_CHECK_REQUIRED
Indicates if an inventory check is required for the Product being searched.OPTION_LABEL
The product option labelOPTION_NAME
The product option nameOPTION_VALUE
The product option valuePRODUCT_CATEGORY_SORT
A dynamic string field.VENDOR_REF
Soft reference to the vendor associated with the Product's catalog.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
field()
Get the typed name of the field for Solr.static SolrCommonCatalogFields
valueOf(String name)
Returns the enum constant of this type with the specified name.static SolrCommonCatalogFields[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ID
public static final SolrCommonCatalogFields ID
Constant indicating an ID field.
-
INVENTORY_CHECK_REQUIRED
public static final SolrCommonCatalogFields INVENTORY_CHECK_REQUIRED
Indicates if an inventory check is required for the Product being searched.
-
INVENTORY_AVAILABLE_FOR_TENANT_SCOPE
public static final SolrCommonCatalogFields INVENTORY_AVAILABLE_FOR_TENANT_SCOPE
Indicates if availability exists for this tenant (exclusive of application scoped availability).
-
INVENTORY_AVAILABLE_FOR_APPLICATION_SCOPES
public static final SolrCommonCatalogFields INVENTORY_AVAILABLE_FOR_APPLICATION_SCOPES
Indicates the application IDs for which there is available inventory.
-
ALL_SKUS
public static final SolrCommonCatalogFields ALL_SKUS
All of the SKUs for a given Product.
-
PRODUCT_CATEGORY_SORT
public static final SolrCommonCatalogFields PRODUCT_CATEGORY_SORT
A dynamic string field. Note that this must be used withString.format(String, Object...)
to replace the wildcard with a category ID to complete the field name. This is generally used for sorting within a category.
-
VENDOR_REF
public static final SolrCommonCatalogFields VENDOR_REF
Soft reference to the vendor associated with the Product's catalog.
-
OPTION_LABEL
public static final SolrCommonCatalogFields OPTION_LABEL
The product option label
-
OPTION_NAME
public static final SolrCommonCatalogFields OPTION_NAME
The product option name
-
OPTION_VALUE
public static final SolrCommonCatalogFields OPTION_VALUE
The product option value
-
AVAILABLE_ONLINE
public static final SolrCommonCatalogFields AVAILABLE_ONLINE
Is this product available online?
-
-
Method Detail
-
values
public static SolrCommonCatalogFields[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (SolrCommonCatalogFields c : SolrCommonCatalogFields.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SolrCommonCatalogFields valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
field
public String field()
Get the typed name of the field for Solr.- Returns:
- The typed name of the field for Solr
-
-