Skip to content

Commit

Permalink
chore: edit readme todo list and add Client settings section
Browse files Browse the repository at this point in the history
  • Loading branch information
adham90 committed Jun 17, 2017
1 parent 69d1111 commit ce7b794
Showing 1 changed file with 36 additions and 9 deletions.
45 changes: 36 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ ElasticsearchReader is an ODM for Elasticsearch and query DSL in a OO style.

## Why ElasticsearchReader?

TODO: Write why ElasticsearchReader here

## Installation

Add this line to your application's Gemfile:
Expand All @@ -28,7 +30,33 @@ Or install it yourself as:

## Usage

TODO: Write usage instructions here
### Client settings

There are two ways to configure the ElasticsearchReader client: the `ElasticsearchReader.settings` hash and `elasticsearch_reader.yml`

You can create this file manually or run `rails g elasticsearch_reader:install`.

```ruby
# config/initializers/elasticsearch_reader.rb
ElasticsearchReader.settings = {host: 'localhost:9250'} # do not use environments
```

```yaml
# config/elasticsearch_reader.yml
# separate environment configs
test:
host: 'localhost:9250'
prefix: 'test'
development:
host: 'localhost:9200'
```

The logger may be set explicitly:

```ruby
ElasticsearchReader.logger = Logger.new(STDOUT)
```
See [config.rb](lib/elasticsearch_reader/config.rb) for more details.

## Development

Expand All @@ -38,14 +66,13 @@ To install this gem onto your local machine, run `bundle exec rake install`. To

## TODO

- [x] [Configrations and settings](https://github.com/adham90/elasticsearch_reader/pull/1)
- [ ] Object mapper
- [ ] Relations
- [ ] Query DSL
- [ ] Pagination
- [ ] Embedding
- [ ] Elasticsearch Analysis
- [ ] Aggregations
- [x] [Configrations and settings](https://github.com/adham90/elasticsearch_reader/projects/1#card-3395198)
- [ ] [Object mapper](https://github.com/adham90/elasticsearch_reader/projects/1#card-3393856)
- [ ] [Query DSL](https://github.com/adham90/elasticsearch_reader/projects/1#card-3393917)
- [ ] [Query helpers](https://github.com/adham90/elasticsearch_reader/projects/1#card-3393926)
- [ ] [Relations](https://github.com/adham90/elasticsearch_reader/projects/1#card-3393910)
- [ ] [Embedding](https://github.com/adham90/elasticsearch_reader/projects/1#card-3393932)
- [ ] [Aggregations](https://github.com/adham90/elasticsearch_reader/projects/1#card-3395154)

## Contributing

Expand Down

0 comments on commit ce7b794

Please sign in to comment.