Pages

Sunday, 7 December 2014

Endeca How to Import Data Domains and UI Artifacts

This blog is an attempt to demonstrate how to import and export data domains and studio artifacts from development/demo instance of Endeca to target instance. I have also included screen snapshots for better understanding of end to end process.

Importing and exporting of data domains are accomplished using the endeca-cmd.bat | sh command line interface. Importing and exporting of Studio artifacts (LAR) are done through Studio.
   
Importing Data Domain
To import a data domain, first place the export in the offline directory on the Endeca Server domain : <MW_HOME>/user_projects/domains/endeca_server_domain/EndecaServer/offline/(ex.: /home/oracle/eid/Middleware/user_projects/domains/endeca_server_domain/EndecaServer/offline/)
If necessary, rename the folder <DDName>_indexes.



Open a terminal window and change directory to <MW_HOME>/user_projects/domains/endeca_server_domain/EndecaServer/bin
(ex.: /home/oracle/eid/Middleware/user_projects/domains/endeca_server_domain/EndecaServer/bin/)



Type the following command:

endeca-cmd.bat | sh import-dd <DDName> --offline-name <DDName>

(ex.: ./endeca-cmd.sh import-dd warranty --offline-name warranty)


Endeca Server

Login to Studio and open the Control Panel >> Click Endeca Servers and create a new connection >> Enter the connection information for the imported data domain. Validate and Save the connection.



Test the connection >>Go to Applications and add a new application >> Enter a name for the application and select the newly created connection to the imported data domain >>Click Save.




Click Action > Manage Pages next to the newly created application >> Click Export / Import and Import >>Click Choose File.



Select the .LAR file associated with the data domain >> Click Open.



Click Import. >> Click Back to Home >>Open the newly created application



I hope this migration process of Endeca data domain and UI artifacts explained here is useful.