FAQ Database Discussion Community

Bonsai automatic indexing

I use MongoDb for storage with an express, Heroku-hosted app. I would like to provide search capabilities to some MongoDb collections, using ElasticSearch via the Bonsai Heroku add-on. However, according to the Bonsai faq, Elasticsearch River plugins are not supported. How can I automatically re-index my MongoDb collections (when a...

Elasticsearch & Bonsai: IndexMissingException on Heroku, works fine locally

Building my first rails app and having issues getting Elasticsearch to run on Heroku. Local works perfect. On Heroku I can open the search page, but when I try to perform a search I get the error below: Heroku logs show: 2015-05-18T12:05:15.969673+00:00 app[web.1]: ActionView::Template::Error ([404] {"error":"IndexMissingException[[homes] missing]","status":404}): 2015-05-18T12:05:15.969674+00:00 app[web.1]: 9:...

ElasticsearchIllegalArgumentException when using update script

I am using Bonsai Elastic Search on Heroku and I have a document as follows: { "_index":"myIndex", "_type":"result", "_id":"1234_is", "_version":1, "found":true, "_source":{ "query":"is", "pubId":1234, "counter":1 } } I'm trying to update the counter like this (as per http://www.elasticsearch.org/guide/en/elasticsearch/reference/0.90/docs-update.html): curl -XPOST 'http://ELASTICSEARCHINSTANCE:9200/myIndex/result/1234_is/_update' -d '{"script" : "ctx._source.counter+=1"}' But I'm getting the following...