Shard Detail

neuroplastic v1.6.0

Elasticsearch query helper for rethinkdb-orm

Install & Use

Add the following code to your project's shard.yml under:

dependencies to use in production
- OR -
development_dependencies to use in development


neuroplastic:
  github: spider-gazelle/neuroplastic

Readme

neuroplastic

Build Status

A module for rethinkdb-orm.
Exposes an elasticsearch query DSL that automagically resolves relations between the models.

Installation

  1. Add the dependency to your shard.yml:

    dependencies:
      neuroplastic:
        github: aca-labs/neuroplastic
    
  2. Run shards install

Usage

require "neuroplastic"
class Model < RethinkORM::Base
  include Neuroplastic

  attribute name : String
  attribute age : Int32
end

# Construct a query
query = Model.elastic.query.filter({"name": "bill"})

# Dump the query object
puts query.build

# Perform search
Model.elastic.search(query)

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Contributors