Having trouble getting local node working on a Grails app


(mwkohout) #1

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


(Shay Banon) #2

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


(system) #3