This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<snippet> | |
<content><![CDATA[/** | |
* @name: ${TM_FILENAME/(.+)\..+|.*/$1/:name} | |
* @hint: ${1} | |
* @author: $TM_FULLNAME ($TM_EMAIL) | |
* @copyright: $TM_ORGANIZATION_NAME | |
* @created: ${2} | |
* @modified: ${2} | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
BasicAWSCredentials = createObject("java", 'com.amazonaws.auth.BasicAWSCredentials').init(yourAccessKey, your | |
secretKey); | |
// turn credentials into a provider object | |
AWSCredentialsProviderObj = createObject("java", "com.amazonaws.auth.AWSStaticCredentialsProvider").init(BasicAWSCredentials); | |
// create our client | |
AWSSNSClient = createObject("java", "com.amazonaws.services.sns.AmazonSNSClientBuilder").standard().withRegion("us-east-1").withCredentials(AWSCredentialsProviderObj).build(); | |
// create/identify the topicArn, snsMessage and snsSubject text strings of what you want your topic to publish. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Create basic AWS credentials properties | |
BasicAWSCredentials = createObject("java", 'com.amazonaws.auth.BasicAWSCredentials').init(yourAccessKey, YourSecretKey); | |
// turn credentials into a provider object | |
AWSCredentialsProviderObj = createObject("java", "com.amazonaws.auth.AWSStaticCredentialsProvider").init(BasicAWSCredentials); | |
// documents endpoint | |
serviceEndpoint = 'search-mydomain-myendpointstring.us-east-1.cloudsearch.amazonaws.com'; | |
signingRegion = 'us-east-1'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{"type": "add", | |
"id": "tt0484562", | |
"fields": { | |
"title": "CloudSearch Rocks", | |
"content": "hello world", | |
"coid":42, | |
"minimumUserLevel": 500 | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
////////////////////// | |
// 1. crawler config | |
crawlerConfig = createObject("java", "com.norconex.collector.http.crawler.HttpCrawlerConfig"); | |
// straight test. does the default crawlerconfig have its appropriate methods. ? | |
//writeDump(crawlerConfig); //YES |
OlderNewer