A module for rethinkdb-orm.
Exposes an elasticsearch query DSL that automagically resolves relations between the models.
- Add the dependency to your
shard.yml
:
dependencies:
neuroplastic:
github: place-labs/neuroplastic
- Run
shards install
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)
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request.
- Caspian Baska - creator and maintainer