Amazon CloudSearch
Developer Guide (API Version 2011-02-01)
« PreviousNext »
View the PDF for this guide.Go to the AWS Discussion Forum for this product.Go to the Kindle Store to download this guide in Kindle format.Did this page help you?  Yes | No |  Tell us about it...

cs-post-sdf

NAME

cs-post-sdf - Upload the SDF documents that you want to index and search.

SYNOPSIS

cs-post-sdf --source FILE|S3_URI COMMON_OPTIONS

DESCRIPTION

Update the contents of the domain specified by the --domain-name option
with the documents specified by the --source option. The source documents
must be specified in the SDF format, which can be generated from
most types of files using the cs-generate-sdf command.
        
COMMON OPTIONS

-a, --access-key STRING         Your AWS access key. Used in conjunction
                                with --secret-key. Required if you
                                do not use an AWS credential file.                            
 
-c, --aws-credential-file FILE  The path to the file that contains your AWS
                                credentials. Required if you have not
                                set the AWS_CREDENTIAL_FILE environment
                                variable or explicitly set your credentials
                                with --access-key and --secret-key.
 
-d, --domain-name STRING        The name of the domain that you are updating.
                                Required.
 
-e,  --endpoint URL             The endpoint for the Amazon CloudSearch
                                Configuration Service. Defaults to the 
                                CS_ENDPOINT environment variable or
                                cloudsearch.us-east-1.amazonaws.com
                                if the environment variable is not set.
                                Optional.   
 
-h, --help                      Display this help message. Optional.

-k, --secret-key STRING         Your AWS secret key. Used in conjunction with
                                --access-key. Required if you do not
                                use an AWS credential file.

-ve, --verbose                  Display verbose log messages. Optional.
 
-v, --version                   Display the version number of the command
                                line tools. Optional.

UPDATE DOCUMENTS OPTIONS

-s, --source FILE|S3_URI        The path to a file or an S3 URI that contains
                                the SDF data you want to upload. You can 
                                specify multiple files or S3 URIs. For example: 
                                --source SDF1.json SDF2.json. Required.

EXAMPLES

cs-post-sdf -d movies --source movies.sdf COMMON_OPTIONS

SEE ALSO

cs-generate-sdf