This is implementation for search the static content.
When we have a static content, If we want to show that content in search results page in the content tab, we have to make the index for those contents. this is the process to create a index file for solr.
1.Update the droidConfig.xml in following way, which is in solr home folder.
When we have a static content, If we want to show that content in search results page in the content tab, we have to make the index for those contents. this is the process to create a index file for solr.
1.Update the droidConfig.xml in following way, which is in solr home folder.
<var name="hostname"> test.test.net</var>
<var
name="storePathDirecttory"> C:/IBM/WebSphere/AppServer/profiles/test/installedApps/WC_test_cell/WC_test.ear/Stores.war/StorefrontAssetStore</var>
<var
name="langId">-1</var>
<var
name="storeId">10151</var>
<var
name="catalogId">10001</var>
<var
name="language">en</var>
<var
name="localename">en_US</var>
<var
name="filterDir">C C:/IBM/WebSphere/AppServer/profiles/test_solr/installedApps/test_search_cell/Solr_test.ear/home</var>
<var
name="port">3737</var>
</variables>
<initialLocations>
<!--
The starting URL for the crawler. One or
more starting URLs may be defined. -->
<location>http://${hostname}/wcsstore/StorefrontAssetStore/StaticContent/en_US/seedList.html</location>
2.Then Update these values also,
·
At the end of the file, the following values
need to be updated :
<autoIndex enable="true">
http://${hostname}:${port}/solr/MC_${catalogId}_CatalogEntry_Unstructured_${localename}/webdataimport?command=full-import&storeId=${storeId}&basePath=
</autoIndex>
<skipDownload>
<url>http://${hostname}/wcsstore/StorefrontAssetStore/StaticContent/en_US/seedList.html</url>
</skipDownload>
3.Then Run the crawler bat file
C:\IBM\Websphere\CommerceServer70\bin
>crawler.bat
-cfg
"C:\IBM\WebSphere\AppServer\profiles\test_solr\installedApps\test_search_cell\Solr_test.ear\home\droidConfig.xml"
-instance
test.
4. Re Run the preprocess and buildindex
No comments:
Post a Comment