# Having trouble getting local node working on a Grails app

**URL:** <https://discuss.elastic.co/t/having-trouble-getting-local-node-working-on-a-grails-app/3036>\
**Category:** Elasticsearch\
**Created:** [June 23, 2010, 6:52pm UTC](https://discuss.elastic.co/t/having-trouble-getting-local-node-working-on-a-grails-app/3036 "2010-06-23T18:52:16Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mwkohout](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mwkohout/32/49570_2.png) [@mwkohout](https://discuss.elastic.co/u/mwkohout)\
**Post date:** [June 23, 2010, 6:52pm UTC](https://discuss.elastic.co/t/having-trouble-getting-local-node-working-on-a-grails-app/3036/1 "2010-06-23T18:52:16Z")

</div>

Hi again; I'm the new user trying to get elastic grid up and running within  
a grails app. Thanks to Shay, I was able to get integration tests to work.

However, I'm having trouble getting elastic search to work within a running  
instance of grails.

I'm configuring the node as such:  
node {  
local = true  
}  
cluster {  
if (Environment.current.equals(Environment.TEST)) name = "TEST CLUSTER"  
else if (Environment.current.equals(Environment.DEVELOPMENT)) name =  
"DEV CLUSTER"  
}

and elastic search is creating a work/elasticsearch directory(within my  
grails app) on when I start the app(via "grails run-app.

When I index stuff, I'm not getting any type of error, but I'm also not  
getting back any results when I do a search.

Does anyone(or Shay) have any suggestions?

thanks again,  
Mike Kohout

---

<div class="post-metadata">

**Author:** ![kimchy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kimchy/32/44952_2.png) [@kimchy](https://discuss.elastic.co/u/kimchy)\
**Post date:** [June 25, 2010, 9:30am UTC](https://discuss.elastic.co/t/having-trouble-getting-local-node-working-on-a-grails-app/3036/2 "2010-06-25T09:30:43Z")

</div>

Hi,

Trying to understand when does it work for you, is it when it runs  
outside of a grails app? Did you manage to use the same code and make it  
work outside of grails?

-shay.banon

On Wed, Jun 23, 2010 at 9:52 PM, Michael Kohout [mwkohout@gmail.com](mailto:mwkohout@gmail.com) wrote:

> Hi again; I'm the new user trying to get elastic grid up and running within  
> a grails app. Thanks to Shay, I was able to get integration tests to work.
> 
> However, I'm having trouble getting Elasticsearch to work within a running  
> instance of grails.
> 
> I'm configuring the node as such:  
> node {  
> local = true  
> }  
> cluster {  
> if (Environment.current.equals(Environment.TEST)) name = "TEST CLUSTER"  
> else if (Environment.current.equals(Environment.DEVELOPMENT)) name =  
> "DEV CLUSTER"  
> }
> 
> and Elasticsearch is creating a work/elasticsearch directory(within my  
> grails app) on when I start the app(via "grails run-app.
> 
> When I index stuff, I'm not getting any type of error, but I'm also not  
> getting back any results when I do a search.
> 
> Does anyone(or Shay) have any suggestions?
> 
> thanks again,  
> Mike Kohout

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 4:23am UTC](https://discuss.elastic.co/t/having-trouble-getting-local-node-working-on-a-grails-app/3036/3 "2017-07-06T04:23:01Z")

</div>


