Some guidelines for determining which properties to include as metadata properties, and which ones to omit:
Include any properties that you want to use for creating facets (e.g., faceting by
size
).Include any properties that you want to use in search configuration rankings and rules (e.g., rank by
brand
).Include any properties that you want to use as sort criteria (e.g., sort by
salePrice
).Include any properties that you want to use in query constraints (e.g., using
catalogId
to restrict results to items in the custom catalog assigned to the user).Don’t include properties that do not match any of these criteria. In particular, you should not include long text fields (such as
longDescription
) as metadata properties. Although it is possible to include these properties in constraints (e.g., “do not return results whoselongDescription
contains Acme”), such constraints are very inefficient, and these properties can increase the index size significantly.