Handy for copy / pasting
File locations:
- Elasticsearch: C:\Elasticsearch
- Installation files: C:\Users\Administrator\Downloads\Tridion Sites 9\Content Delivery\roles\xo\resources\elasticsearch
- Website root and Query example: C:\Inetpub\wwwroot\QueryBuilder.aspx
CME: http://localhost/
XO UI: http://localhost/SDL/#app=wcm&entry=st-promotions
Website: http://localhost:82, with a Query page on: http://localhost:82/QueryBuilder.aspx
Fredhopper: http://localhost:8180/fredhopper/admin/
Elasticsearch: http://localhost:9200/_all
Navigate to: C:\Users\Administrator\Downloads\Tridion Sites 9\Content Delivery\roles\xo\resources\elasticsearch
Run:
.\installElasticsearchIndexes.ps1
-
Copy the installation files from C:\Users\Administrator\Downloads\Tridion Sites 9\Content Delivery\roles\xo\xo-management to C:\UDP\
-
Go to the bin directory
-
Enter:
.\installService.ps1 --auto-register
-
Copy the installation files from C:\Users\Administrator\Downloads\Tridion Sites 9\Content Delivery\roles\xo\xo-query to C:\UDP\
-
Go to the bin directory
-
Enter:
.\installService.ps1 --auto-register
- Verify that the installation is working by accessing the Targeting section of the CME:
- http://localhost/SDL/#app=wcm&entry=st-promotions
- You should see an empty list of Promotions, but no errors.
- Then check that the website is returning fallback content and no errors:
Create a new Promotion: Name: First Test Run Where -> Publications: Bootcamp Publication Where -> Page Regions: Sidebar What to display -> Select content by Folder -> Building Blocks -> Sidebar Promotions Folder Check that the Promotion shows up in the Sidebar region of the website.
- Start the Fredhopper instance Deployment Agent:
- Navigate to: C:\Fredhopper> and enter:
bin\deployment-agent
- Start the SmartTarget instance: C:\Fredhopper> and enter:
bin\instance SmartTarget
Note: The command must be run in a command prompt from the Fredhopper directory, not bin.
- Navigate to the migration directory:
- Downloads\Tridion Sites 9\Content Delivery\roles\xo\migration
- (Optional) Have a look at migration.properties. You may need to modify the properties in that file when doing a customer migration.
- Run the migration tool:
Export:
java -jar smarttarget-migrate.jar -config=migration.properties -export
Import:
java -jar smarttarget-migrate.jar -config=migration.properties -import
-
Verify that the migration worked by accessing the Targeting section of the CME: http://localhost/SDL/#app=wcm&entry=st-promotions. Have a look through the Promotions that were migrated.
-
Then check that the website is returning the migrated Promotions: http://localhost:82/
- Stop the SmartTarget instance. Go back to C:\Fredhopper> and enter:
bin\instance SmartTarget stop
- Stop the Fredhopper instance Deployment Agent by pressing CTRL+C in its command prompt window
Query the API by editing the file C:\Inetpub\wwwroot\QueryBuilder.aspx and view it in a browser at http://localhost:82/QueryBuilder.aspx
View index status (health): GET http://localhost:9200/_cat/indices?v
View all data: GET http://localhost:9200/_all
View Promotions: GET http://localhost:9200/xo-promotions/_search?size=1000
View Experiments: GET http://localhost:9200/xo-experiments/_search?size=1000
View trigger types (definitions): GET http://localhost:9200/xo-triggertypes/_search?size=1000