neuroplastic v1.12.2

Elasticsearch query helper for rethinkdb-orm

neuroplastic

CI

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: place-labs/neuroplastic
  1. 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

Repository

neuroplastic

Owner
Statistic
  • 2
  • 1
  • 0
  • 0
  • 4
  • about 1 year ago
  • March 21, 2019
License

MIT License

Links
Synced at

Thu, 02 May 2024 22:39:03 GMT

Languages