Indexing site content with WebSphere Commerce Search
WebSphere Commerce contains unmanaged content such as site content, that must be crawled using the site content crawler. Unmanaged content intended for production must be published separately, as it is not part of staging propagation. Once the static content is copied to the correct location, a manual site content re-indexing from the production system is required against the repeater.
Site content crawler
The site content crawler crawls HTML and other site files from WebSphere Commerce starter stores to help populate the site content search index.
The site content crawler captures the site content, caches it in a local directory, and puts the entries into the manifest.txt file. It then maps the physical locations to their corresponding URLs. The indexer uses the manifest file to retrieve the physical temporary file locations, creates the indexes, and once tokenized, associates the file URLs with the index record. The following table highlights the site content crawler workflow:
Site content crawler actions and workflow
Site content crawler action Site content crawler workflow Site content crawler launches The site content crawler:
- Reads the site content crawler configuration files
- Reads the host filter configuration files
- Initializes the site crawler internal parameters
Site content crawler creates directory structure The site content crawler:
- Locates the destination directory from the configuration
- Creates the date directory under the destination directory
- Creates the counter directory under the date directory
The following diagram depicts a high-level overview of the site content crawler directory structure:
Site content crawler crawls site content The site content crawler:
- Reads from the URLs pool
- Crawls site content files
- Extracts URL links
- Filters URL links
- Adds URLs to the URL pool
Site content crawler completes If the site content crawler is successful, it:
- Saves the site content to the current counter directory
- Adds an entry to the manifest.txt file
If the site content crawler fails, it:
- Adds an entry to the errors.txt file.
Site content crawler and indexer integration
The indexer acts as a service to the site content crawler. After each crawl completes, the site content crawler directly invokes a request to the WebSphere Commerce Search server with the specific URL. The indexing process then starts asynchronously. The typical URL resembles the following sample URL:
- http://localhost:3737/solr/MC_$catalogId_CatalogEntry_Unstructured_$localename/webdataimport?command=full-import&storeId=$storeId
The URL is coded in the site content crawler configuration file.
- Crawling WebSphere Commerce site content
We can crawl WebSphere Commerce site content in starter stores using the REST API.- Site content crawler configuration
The site content crawler uses configuration files and manifest files to determine the site content crawler behavior.
Related tasks
Crawling WebSphere Commerce site content