
Setting up and building the inventory index
The inventory index, a separate index that contains index data, is an extension of the product index. For accurate inventory status, you can refresh the inventory index more frequently than the product index.
Important:
- Non-ATP and DOM inventory systems are supported by index inventory data in WebSphere Commerce Search. ATP, External, and No-inventory types are not supported by the Search inventory index.
- The filterCache and documentCache are required when an extension index such as Inventory exists in WebSphere Commerce search. For more information, see WebSphere Commerce search performance tuning.
The following inventory sources are used by default:
- The inventory index is used in the Marketing tool to exclude out-of-stock products, and promote overstock products.
- The WebSphere Commerce database is used to display inventory counts in the storefront. That is, customization is required to use the inventory index to display inventory counts in the storefront.
Before you begin
The inventory index is not created by default.
- Ensure that you have setup the search index for your master catalog, specifying both the CatalogEntry and CatalogGroup index types.
- Ensure that your store is using the non-ATP inventory system or a DOM system. If your store is
using another inventory system such as ATP or External, either republish the store by using the
non-ATP inventory system, or update the store to use the non-ATP inventory
system:
update STORE set INVENTORYSYSTEM=-2 where STORE_ID in (store_id);
Procedure
What to do next
After the inventory index is set up, business users can use the Marketing tool to exclude
out-of-stock products, and promote overstock products: Example: Promoting or excluding products using inventory data.
Note: Inventory
is operational data, which is set up and configured on the production server. That is, authoring or
staging servers typically do not contain inventory data. When business users create search rules for
excluding out-of-stock products, the inventory index must be set up on the authoring server, with
mock inventory data loaded into the authoring database. If the mock inventory data does not exist on
the authoring server, searches in the authoring storefront or store preview do not work correctly.
If inventory index does not exist, all products are considered out-of-stock.