Skip to content
The revived ElasticSearch grails plugin
Branch: master
Clone or download
#24 Compare This branch is 42 commits ahead, 3 commits behind noamt:master.
puneetbehl Merge pull request #25 from puneetbehl/yourkit
Add YourKit acknowledgment
Latest commit 66e1f0c Jan 23, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
gradle
grails-app
src
test/unit/org/grails/plugins/elasticsearch
.gitattributes
.gitignore Remove bin folder from git Aug 17, 2017
.travis.yml Fixed .travis.yml Apr 1, 2018
ISSUE_TEMPLATE.md
LICENSE.txt * Bumping to next release version Jan 19, 2014
README.asciidoc
build.gradle #7 Update to Elasticsearch 5.5.3 May 10, 2018
gradle.properties #7 Update to Elasticsearch 5.5.3 May 10, 2018
gradle.settings
gradlew
gradlew.bat Updated to Grails 3.3.2 Jan 22, 2018
publish-docs.sh
settings.gradle Updated plugin name to elasticsearch Jan 22, 2016
travis-build.sh

README.asciidoc

Elasticsearch Grails plugin Build Status

An Elasticsearch plugin for Grails; This project is a fork based on the great work done by the guys at:

Why would you want to fork the original Elasticsearch plugin?

The original Elasticsearch plugin relies on Hibernate-specific GORM components, thus rendering it unusable if you back your Grails application by any other database.

Documentation

For latest stable version of plugin documentation, Click Here

How can I obtain the plugin?

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

dependencies {
    ...
    compile "org.grails.plugins:elasticsearch:2.4.0"
    ...

}

Versioning

Plugin Version Grails Version Elasticsearch Version

2.5.0.BUILD-SNAPSHOT

3.3.x

5.5.3

2.4.1

3.3.x

5.4.3

2.4.0

3.1.y

5.4.1

1.4.1

3.1.y

5.4.1

1.2.1

3.2.y

2.3.z

1.2.0

3.1.y

2.3.z

1.0.0.x

3.1.y

1.6.z

0.1.0.x

2.y

2.1.z

0.0.4.x

2.y

1.6.z

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 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 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

mongoDatastore

Hibernate

hibernateDatastore

Memory analysis done with YourKit

YourKit

YourKit supports open source projects with its full-featured Java Profiler. YourKit, LLC is the creator of YourKit Java Profiler and YourKit .NET Profiler, innovative and intelligent tools for profiling Java and .NET applications.

License

Copyright 2014 the original author or authors.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

Here, have a yak:

                            _,,,_
                        .-'`  (  '.
                     .-'    ,_  ;  \___      _,
                 __.'    )   \'.__.'(:;'.__.'/
         __..--""       (     '.__{':');}__.'
       .'         (    ;    (   .-|` '  |-.
      /    (       )     )      '-p     q-'
     (    ;     ;          ;    ; |.---.|
     ) (              (      ;    \ o  o)
     |  )     ;       |    )    ) /'.__/
     )    ;  )    ;   | ;       //
     ( )             _,\    ;  //
     ; ( ,_,,-~""~`""   \ (   //
      \_.'\\_            '.  /<_
       \\_)--\             \ \--\
   jgs )--\""`             )--\"`
       `""`                `""`
You can’t perform that action at this time.