New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

aws-cloudsearch

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

aws-cloudsearch

Simple wrapper around AWS CloudSearch with a bus-based interface.

  • 0.0.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Introduction

The aws-cloudsearch module makes it simple to index and search documents using the AWS CloudSearch service.

Index = require "aws-cloudsearch"

albums = new Index
  domain:
    name: "albums"
    id: "xxxxxxxxxxxxxxxxxxxxxxxxxxx"

albums.events.on "*.error", (error) ->
  console.log error

id = albums.search
  query: "Led Zepplin"
  fields: "title,year"

albums.events.once "aws-cloudsearch.search.#{id}.success", (results) ->
  console.log "Found #{results.hits.found} results."
  for hit in results.hits.hit
    [title] = hit.data.title
    [year] = hit.data.year
    console.log "'#{title}' - #{year}"
    

The aws-cloudsearch module use node-bus to propagate events.

Status

This is very much a work in progress. Email me suggestions if you have any.

Among other things, I plan to put a bit more wrapper code around the queries and results.

Installation

npm install aws-cloudsearch

Keywords

FAQs

Package last updated on 07 Dec 2012

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc