i'm trying to index some data to elastic search by using the elastic4s API and play framework
I'm basically calling this method from the controller
def test(){
val client = ElasticClient.local
client.execute { create index "bands" }
client execute { index into "bands/singers" fields "name"->"chris martin" }
client.close()
}
I didn't get any error on play or in the elastic search log,
Then i checked with the Sense plugin if the data is indexed and i got
{
"error": "IndexMissingException[[bands] missing]",
"status": 404
}
It looks like the query didn't go to the server?? ...