🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more

github.com/andyatkinson/search-api-service

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
s

github.com/andyatkinson/search-api-service

v0.0.0-20191104205801-1ed77cd09504
100

Supply Chain Security

100

Vulnerability

100

Quality

100

Maintenance

100

License

Network access

Supply chain risk

This module accesses the network.

Found 1 instance in 1 package

Version published
Created
Issues
0

Search API

Copied from source article: https://outcrawl.com/go-elastic-search-service

Upload a couple of fake documents, for example, documents found inside fake-data.json file.

$ curl -X POST http://localhost:8080/documents -d @fake-data.json -H "Content-Type: application/json"
Try it out.

$ curl http://localhost:8080/search?query=exercitation+est+officia
{
  "time": "42",
  "hits": "43",
  "documents": [{
      "title": "Exercitation est officia fugiat labore deserunt est id voluptate magna.",
      "created_at": "2018-03-21T15:22:48.7830606Z",
      "content": "..."
    },
    // ...
  ]
}

Docker

Docker up

docker-compose up -d --build

-d        # Detached mode
--build   # Build images before starting containers

Stop container

docker ps docker stop search_api docker stop elasticsearch

FAQs

Package last updated on 04 Nov 2019

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