The steps may vary based on how far you are with your configuration, I wish there was a simpler global setting to enable / disable this feature.
Step 1: Disable "store-enhancements" Feature
Replace /apps/websphere/wcs70 with WCS home directory
Replace -DinstanceName with your WCS instance name
Replace -DdbUserPassword with db passoword used by WCS instance
Here is a sample command
/apps/websphere/wcs70/bin/config_ant.sh -buildfile /apps/websphere/wcs70/components/common/xml/disableFeature.xml -DinstanceName=guest -DfeatureName=store-enhancements -DdbUserPassword=wcs7lab01
When you run the script to disable SOLR search it won't rollback WAS level profile changes, essentially the script will only rollback WCS EAR file and database changes.
Step 2: Delete SOLR WAS Profile
-- Delete profile
/apps/websphere/ws70/bin/manageprofiles.sh -delete -profileName guest_solr
-- Update Registry
/apps/websphere/ws70/bin/manageprofiles.sh -validateAndUpdateRegistry
rm -rf /apps/websphere/ws70/profiles/guest_solr
Step 3: Database Tweaks
Let us assume you don't want to re-run the disablement script, instead want to do few DB tweaks to toggle back and forth between SOLR and non - SOLR based features
select * from EMSPOT where name like '%search%'
and storeent_id in (select storeent_id from storeent where identifier='AuroraStorefrontAssetStore')
You should notice a record with usagetype as "STOREFEATURE" for your store id, if this is the case delete this record
NOTE: Usually this is enabled for the Store asset store
select * from SEOURLKEYWORD where storeent_id in (select storeent_id from storeent where identifier='AuroraStorefrontAssetStore')
Mark all records as inactive by setting status column value as 0
NOTE: Usually this is enabled for the Store asset store As of V7, FEP5 there is no way to enable / disable SOLR from wc-server.xml
Step 4: Re-enable SOLR
use these steps if you ever want to re-enable SOLR alone and assuming the store enhancements feature is already enabled in WCS EAR and WCS DB.
This command can be run both in WCS box or any remote box to setup SOLR WAS profile.
Here is a sample.
/apps/websphere/wcs70/bin/./config_ant.sh -debug -buildfile /apps/websphere/wcs70/components/foundation/subcomponents/search/deploy/deploySearch.xml -DinstanceName=guest -DdbUserPassword=wcs7lab01 -DsolrHome=/apps/websphere/wcs70/instances/guest/search/solr/home -DautoConfigSearchWebserver=true -DisShareWCWebserverProduct=true > /apps/websphere/wcs70/instances/guest/logs/only_search_enable.log
Further Reading
Setting up SOLR in standard mode
E Commerce blogs are very popular in the whole world and there are so many famous websites in world who are working in many countries at once.
ReplyDeleteThis comment has been removed by the author.
ReplyDeleteVery informative, I really enjoyed reading it.
ReplyDeleteTop 10 Cheapest Technologies To Generate Power at Home
Thanks for the post. It was very interesting and meaningful. I really appreciate it! Keep updating stuff like this.
ReplyDeleteScan to BIM in Minnesota
Dimension Control Services in Birmingham
Plant Engineering Services in Bayern Germany
Reverse Engineering Services in Bayern Germany
Read full detail of Windows 11, All The Features You Need To Know About
ReplyDeleteI would highly recommend your software development company to anyone in need of reliable, high-quality software solutions. Your dedication to quality, communication, and collaboration sets you apart from the competition. Keep up the excellent work!
ReplyDeleteI appreciate the research and effort that went into this article. It provided me with a deeper understanding of the subject and left me wanting to explore it further.
ReplyDeleteheavy duty tarpaulins uk