Skip to content
This repository has been archived by the owner on Feb 6, 2018. It is now read-only.

Commit

Permalink
Merge pull request #9 from drewda/master
Browse files Browse the repository at this point in the history
Looks good. I'm not sure how I missed the pull request last week but it's merged now.
  • Loading branch information
djensen47 committed Jul 19, 2013
2 parents 975bdcc + dfc1e71 commit 0e6311e
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion README.md
Expand Up @@ -40,9 +40,15 @@ Or install it yourself as:
###Initialize the library

```ruby
ds = AWSCloudSearch::CloudSearch.new(ENV['CLOUDSEARCH_DOMAIN'])
# if your CloudSearch domain is in the us-east-1 region and availability zone
ds = AWSCloudSearch::CloudSearch.new('your-domain-name-53905x4594jxty')

# if your CloudSearch domain is in a different AWS region and/or availability zone
ds = AWSCloudSearch::CloudSearch.new('your-domain-53905x4594jxty', 'us-west-2')
```

Better yet, store those values in a YAML configuration file or in environment variables.

###Create some documents
Since AWS charges per batch, it is best to batch as many documents as you can in each batch. `Document#new` takes an optional parameter `auto_version` which you set to true to automatically set the version, the default value is false.

Expand Down

0 comments on commit 0e6311e

Please sign in to comment.