Skip to content

Commit

Permalink
Update README.asciidoc
Browse files Browse the repository at this point in the history
  • Loading branch information
puneetbehl committed Jan 30, 2016
1 parent 0590dcc commit 50b4261
Showing 1 changed file with 15 additions and 7 deletions.
22 changes: 15 additions & 7 deletions README.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -11,29 +11,37 @@ The original Elasticsearch plugin relies on *Hibernate-specific* GORM components
image:https://travis-ci.org/noamt/elasticsearch-grails-plugin.svg?branch=master["Build Status", link="https://travis-ci.org/noamt/elasticsearch-grails-plugin"]

Just like any other Grails plugin, through the Grails Plugin center.
Edit your project's +BuildConfig.groovy+ file, by adding the plugin's dependency declaration:
Edit your project's +build.gradle+ file, by adding the plugin's dependency declaration:

----
grails.project.dependency.resolution = {
plugins {
runtime ':elasticsearch:0.0.4.6'
}
dependencies {
...
compile "org.grails.plugins:elasticsearch-grails-plugin:1.0.0-SNAPSHOT"
...
}
----

=== Ohs Nos! I'm hitting a +java.lang.Exception: No datastore implementation specified+

This error means that you probably haven't specified your datastore type in your +Config.groovy+ file.
This error means that you probably haven't specified your datastore type in your +application.groovy+ or +application.yml+ file.
This plugin has an auto-index feature which automatically propagates any changes made to searchable Domains into the search index;
this is done by hooking into GORM's storage events but also requires a reference to the active datastore implementation.
To fix, edit your project's +Config.groovy+ file and add:
To fix, edit your project's +application.groovy+ or +application.yml+ file and add:
application.groovy
----
elasticSearch {
...
datastoreImpl = 'nameOfDatastoreBean'
...
}
----

application.yml
----
elasticSearch:
datastoreImpl: nameOfDatastoreBean
----
Where the value should be the name of the datastore bean as it is configured in the Spring context; some possible values:

MongoDB::
Expand Down

0 comments on commit 50b4261

Please sign in to comment.