Salesforce B2C Commerce search indexes use data from these indexes: Product, Spelling, Content, Synonym, Suggest, Availability, and Active data.
For a product to be indexed, it must be searchable, online, and assigned to at least one online category. If a product is assigned to both online and offline categories, it is still indexed. Only product attributes that are configured as searchable attributes are indexed.
For example, if the
base product.refinementColor=red
and
variation.refinementColor=blue
, the product is found for search
by red and blue.
Index terms are derived from product data by processing data as follows:
pants
and
trousers
are synonyms, then searching on pants
returns pants
and trousers
and searching on
trousers
returns pants
and
trousers
. Synonyms are added for words with German umlauts, that is,
‘küche’, ‘kueche’winterwear
is a hypernym for hats
,
gloves
, and mittens
, then searching on
winterwear
returns hats
, gloves
,
and mittens
, but searching on hats
returns
hats
, gloves
returns gloves
, and
mittens
only returns mittens
. ! ( ) : [ ] { } + ~ ^ ? '
are removedIf a customer searches on a term and no results are found, spelling suggestions analyze the search term to see if there it's a misspelling and then presents similar terms found in the product set. For example, if a customer searches on "telewision" they are asked if they meant "television".
The spelling index is compiled using an algorithm and doesn't need to be manually configured. However, you must enable the feature on the Search Preferences page in Business Manager. The spelling index uses the product and content indexes and must be rebuilt after them.
The content index is built based on content assets, library folders, and libraries. For a content asset to be indexed, it must be searchable and online. Content attributes that are configured as searchable are indexed. The content index uses the same processing rules as the product index to derive index terms.
The synonym index is built based on synonyms/synonym groups defined for a specific language. All synonyms are stemmed based on the configured stemmer.
The suggest index is built based on category names, brand names, and terms added or excluded on the Search Suggestions page in Business Manager.
All suggestions are converted to appear in lower case, even if their original values include uppercase letters. Suggestions only appear if there is at least one result associated with the suggestion.
To determine search result counts, a search is executed for each suggestion during building, using the current product index. You must build the product index before building the suggest index to get accurate counts.
Inventory data is included in the availability index even if no product exists for the inventory record. This decouples availability updates and data replication so that they are not dependent on each other. You can update the availability index for a new product and when the new product is replicated from Staging to Production, it immediately appears in search results because the related availability data is already included in the availability index on Production.
The following specific rules apply:
The availability index is built based on information about product availability that is used to sort and filter search results by inventory status. This index relies on a transaction that updates inventory amounts and therefore must be rebuilt regularly. B2C Commerce sites that are assigned to the same inventory list share the search availability index. Only one index is maintained per inventory list.
The search availability index is updated automatically and incrementally when the following events occur:
The availability index isn't replicated from the staging system to the production system. Instead, it's created and updated on the production system.
The active data index enables you to include active data attributes collected from the storefront, imported from backend systems, or calculated in B2C Commerce, when presenting sorting options to customers or for sorting rules for category or keyword searches.
The active data index contains information about product active data such as sales velocity. The daily active data feed automatically causes this index to rebuild once a day. The index only needs to be manually rebuilt after a custom feeds import.