Indexing contract prices using Index Load
You can use Index Load to load contract prices into a separate Price extension index when your site contains many contracts, or if you use an external source to populate contract prices.
Before you begin
- Download and extract the following sample code: IndexLoadSampleCode.zip. The sample includes configuration files that are used by Index Load, and manual updates that are performed in this task, for reference.
- Copy the extracted Index Load sample files to the Search EAR: Search_eardir/xml/config/indexload
- Update the following line in the copied Search EAR file
wc-indexload-price.xml file to use your master catalog ID, instead of
10001:
<_config:property name="coreName" value="MC_10001_CatalogEntry_Price_generic" />
Procedure
-
Configure the Index Load configuration files.
Index Load requires three types of configuration files, based on the XML schema definitions of the Data Load framework:
Index Load configuration files
Index Load configuration file Data Load definition file Environment configuration file (wc-indexload-env.xml) wc-dataload.xsd Profile configuration file (wc-indexload-profileName.xml) wc-dataload-env.xsd Profile item configuration file (wc-indexload-businessobject.xml) wc-dataload-businessobject.xsd For more information about the Index Load configuration files, see Index Load configuration files for indexing from database.
-
Create the external price subindex.
The price index is an extended sub core that contains price information, instead of storing it in the catalog entry core.Note: The order in which you set up the Price index, and the location of the schema file you update differs, depending on whether your site already contains a catalog entry index setup against the targeted catalog ID.
To create the external price subindex, where you do not already have an existing catalog entry index setup for the catalog ID you are targeting:
To create the external price subindex, where you already have an existing catalog entry index setup for the catalog ID you are targeting:
-
Run Index Load:
What to do next
Running Index Load will not invalidate existing contract prices in the storefront cache. If you
have updated the contract price and rebuild the price index using Index Load, you must manually
invalidate the entire cache. There are two ways to do this.
- Run the DynaCacheInvalidation URL with the parameter
clear=true
. For more information, see DynaCacheInvalidation URL - Remove all cache entries using the Cache Monitor. For more information, see Removing cache entries through the Cache Monitor.