var aws = require('aws-sdk'); var cloudsearchdomain = new aws.CloudSearchDomain({ endpoint: '<CloudSearchã®ã¨ã³ããã¤ã³ã>' }); exports.handler = function(event, context) { var params = { query:event.q }; cloudsearchdomain.search(params, function(err, data) { if (err) { console.log("error " + err); } else { if (data.hits.found > 0) { console.log(data.hits.hit[0]); context.done(null, data.hits.hit[0]); } e
{{#tags}}- {{label}}
{{/tags}}