Code Monkey home page Code Monkey logo

serverless-search's Introduction

Serverless Search

POC showcasing the use of LunrJS with Lambda for a server side serverless search api.

This example was made to use 2 data sources not provided in this example but easily accessible from their original sources:

The sources are CSV files uploaded to S3. The index is generated when a new file is uploaded.

Deploy

cp -a config/dev.sample.yml config/dev.yml

Edit config/dev.yml to your needs.

npx sls deploy

Take note of the bucket name and Lambda-URI endpoints.

Index the 2 datasets

aws s3 cp lego_sets.csv s3://<myBucket>/source/lego_sets.csv
aws s3 cp imdb_movies.csv s3://<myBucket>/source/imdb_movies.csv

Initiate a search

Pass a valid LunrJS query in the search parameter (URLEncoded):

curl "https://<SearchLegoLambdaURIEndpoint>/?search=%2Byear:1984%20%2Btheme:duplo"

serverless-search's People

Contributors

danielmuller avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.