GithubHelp home page GithubHelp logo

isabella232 / sumo_db_elasticsearch Goto Github PK

View Code? Open in Web Editor NEW

This project forked from inaka/sumo_db_elasticsearch

0.0 0.0 0.0 81 KB

ElasticSearch adapter for sumo_db

License: Apache License 2.0

Erlang 100.00%

sumo_db_elasticsearch's Introduction

sumo_db_elasticsearch

This is the ElasticSearch adapter for sumo_db tested with 2.2.0 version.

ElasticSearch

Install ElasticSearch

To install ElasticSearch please follow the instructions in this link: Installing ElasticSearch.

Getting Started

To start use sumo_db with this ElasticSearch adapter sumo_db_elasticsearch is pretty easy, you only has to follow these steps:

  1. Add sumo_db and sumo_db_elasticsearch as dependencies in your project.

Using erlang.mk:

DEPS = sumo_db sumo_db_elasticsearch

dep_sumo_db               = git https://github.com/inaka/sumo_db.git               0.5.0
dep_sumo_db_elasticsearch = git https://github.com/inaka/sumo_db_elasticsearch.git 0.0.1

Using Rebar:

{deps, [
  {sumo_db, {git, "https://github.com/inaka/sumo_db.git", {tag, "0.5.0"}}},
  {sumo_db_elasticsearch, {git, "https://github.com/inaka/sumo_db_elasticsearch.git", {tag, "0.0.1"}}}
]}.
  1. You need at least one doc/entity, let's use sumo_test_people_elasticsearch as example.

    NOTE: if you use this entity, you'll need to include mixer to the dependencies list

  2. Provide the configuration file, e.g.: test.config.

  3. Now you can run your app and start using sumo from there.

Running sumo from Erlang console

Start the Erlang console, adding the path to your beams and config file

$ erl -pa ebin deps/*/ebin -config tests/test.config

Within the console:

> application:ensure_all_started(sumo_db_elasticsearch).
10:16:55.730 [info] Application lager started on node nonode@nohost
10:16:55.740 [info] Application jiffy started on node nonode@nohost
10:16:55.759 [info] Application ranch started on node nonode@nohost
10:16:55.779 [info] Application crypto started on node nonode@nohost
10:16:55.779 [info] Application cowlib started on node nonode@nohost
10:16:55.824 [info] Application asn1 started on node nonode@nohost
10:16:55.825 [info] Application public_key started on node nonode@nohost
10:16:55.881 [info] Application ssl started on node nonode@nohost
10:16:55.893 [info] Application gun started on node nonode@nohost
10:16:55.901 [info] Application shotgun started on node nonode@nohost
10:16:55.909 [info] Creating wpool ETS table
10:16:55.909 [info] Application worker_pool started on node nonode@nohost
10:16:55.914 [info] Application tirerl started on node nonode@nohost
10:16:55.971 [info] Application sasl started on node nonode@nohost
10:16:55.994 [info] Application quickrand started on node nonode@nohost
10:16:55.995 [info] Application uuid started on node nonode@nohost
{ok,[syntax_tools,compiler,goldrush,lager,jiffy,ranch,
     crypto,cowlib,asn1,public_key,ssl,gun,shotgun,worker_pool,
     tirerl,sasl,quickrand,uuid,sumo_db,sumo_db_elasticsearch]}

% from here you can start using sumo

> sumo:find_all(sumo_test_people_elasticsearch).
[]

Running Tests

make tests

Contact Us

If you find any bugs or have a problem while using this library, please open an issue in this repo (or a pull request :)).

And you can check all of our open-source projects at inaka.github.io

sumo_db_elasticsearch's People

Contributors

elbrujohalcon avatar euen avatar harenson 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.