Documentation Center

Configuring deployer for Amazon CloudSearch

About this task

In case you have an IIS web application for your deployer application (HTTP upload), you can use the deployer-install.ps1 PowerShell script to deploy the Search Module's indexer. Starting from DXA version 1.3, you can also use this script for the standalone SDL Web 8 Deployer Service on Windows.

Here is an example of the deployer-install.ps1 PowerShell script:
'.\deployer-install.ps1' -deployerRootFolder "c:\inetpub\wwwroot\mysite" -indexerUrl "<Your AWS CloudSearch Search endpoint URL>" -searchIndexerType CloudSearch
Otherwise, use the following procedure.

Procedure

  1. In the Search Module, go to the deployer/config folder.
  2. Copy the SearchDAOBundle.xml file to the bin/config directory of your deployer application.
  3. In the bin/config directory, edit the cd_storage_conf.xml file:
    <Bundle src="SearchDAOBundle.xml"/>
  4. Update the <Storage/> element with type persistence that corresponds to the sites that you are deploying the reference implementation for to change the Class attribute from com.tridion.storage.persistence.JPADAOFactory to com.tridion.storage.si4t.JPASearchDAOFactory.
  5. Add the following after the <DataSource/> element inside this <Storage/>element:
    <Indexer Class="org.si4t.cloudsearch.CloudSearchIndexer"
     authentication="implicit"
     access_key_id=""
     secret_access_key=""
     documentEndpoint="<Your AWS CloudSearch Document endpoint URL>"
     DocExtensions="pdf,docx,doc,xls,xlsx,pptx,ppt"
     indexBatchSize="20" />
    The value for the authentication attribute can be either "implicit",or "explicit". If "implicit" is specified, the AWS credentials are determined using "the default credential provider chain", as described in AWS documentation (the access_key_id and secret access_key attributes are ignored in this case). If "explicit" is specified, an AWS Access Key ID and Secret Access Key must be explicitly specified in the access_key_id and secret access_key attributes.
  6. Copy si4t-cloudsearch-1.0.jar and its third party library dependencies from deployer\lib\si4t-cloudsearch to the lib folder of your Deployer application.