Database Reference
In-Depth Information
"bookid" : "1008",
"yop" : "2000"
}
}, {
"type" : "add",
"id" : "1008_2009",
"fields" : {
"bookid" : "1008",
"test" : "111",
"isbn" : "1111",
"yop" : "2009"
}
}]
Using command line tools
To upload the data from DynamoDB to CloudSearch, we need to run the cs-import-
documents command in the following manner:
cs-import-documents --domain mydomain --source ddb://Book
Here, we are uploading documents to the mydomain CloudSearch domain from the Dy-
namoDB table called Book .
Note
Make a note that when we keep data at two sources, it is always challenging to maintain
them in sync. When we create the CloudSearch domain from the DynamoDB table, we
just borrow information to create the index and nothing else. So once the document up-
load is done, for any update or delete, there should be a similar operation performed on
CloudSearch with each DynamoDB data change. You can programmatically do that by
writing code for both DynamoDB and CloudSearch updates one after another. This would
help in keeping your system up-to-date.
Search WWH ::




Custom Search