# Elastic Search, CouchDB and River Plugin Problems

**URL:** <https://discuss.elastic.co/t/elastic-search-couchdb-and-river-plugin-problems/4450>\
**Category:** Elasticsearch\
**Created:** [May 20, 2011, 8:36pm UTC](https://discuss.elastic.co/t/elastic-search-couchdb-and-river-plugin-problems/4450 "2011-05-20T20:36:17Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Scott\_Feinberg](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/scott_feinberg/32/3372_2.png) [@Scott\_Feinberg](https://discuss.elastic.co/u/Scott_Feinberg)\
**Post date:** [May 20, 2011, 8:36pm UTC](https://discuss.elastic.co/t/elastic-search-couchdb-and-river-plugin-problems/4450/1 "2011-05-20T20:36:17Z")

</div>

Hi,

I posted here but seeing as they don't even have a tag for river-  
plugin, it's probably more effective on here.

> <https://stackoverflow.com/questions/6077148/couchdb-elastic-search-and-river-plugin-not-operating-correctly>

I'm trying to get ElasticSearch to work, specifically with the River  
Plugin. For some reason I just can't get it to work. I've included the  
procedure I'm using to try and do it, found here:  
[http://www.elasticsearch.org/tutorials/2010/08/01/couchb-integration.html](http://www.elasticsearch.org/tutorials/2010/08/01/couchb-integration.html)

curl -XDELETE '[http://localhost:9200/\_all/](http://localhost:9200/_all/)'  
Response:

{"ok":true,"acknowledged":true}  
This is so I know I'm working with an empty set of elasticsearch  
instances.

I have an existing database, called test and the river plugin has  
already been installed. Is there anyway to test to confirm the River  
Plugin is installed and running?

I issue the following command:

curl -XPUT '[http://localhost:9200/\_river/my\_index/\_meta](http://localhost:9200/_river/my_index/_meta)' -d '{  
"type" : "couchdb",  
"couchdb" : {  
"host" : "localhost",  
"port" : 5984,  
"db" : "my\_couch\_db",  
"filter" : null  
}  
}'  
my\_couch\_db is a real database, I see it in Futon. There is a document  
in it.

Response:

{"ok":true,"\_index":"\_river","\_type":"my\_index","\_id":"\_meta","\_version":  
1}  
Now at this point, my understanding is elasticseach should be working  
as I saw in the tutorial.

I try to query, just to find anything. I go to

[http://localhost:9200/my\_couch\_db/my\_couch\_db](http://localhost:9200/my_couch_db/my_couch_db).  
Response:

No handler found for uri [/my\_couch\_db/my\_couch\_db] and method [GET]  
What's weird is when I go to localhost:5984/my\_couch\_db/\_\_changes

I get {"error":"not\_found","reason":"missing"}

Anyone have any idea what part of this I'm screwing up?

Thanks,

--Scott

---

<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:** [May 24, 2011, 11:44am UTC](https://discuss.elastic.co/t/elastic-search-couchdb-and-river-plugin-problems/4450/2 "2011-05-24T11:44:37Z")

</div>

You need to issue some search requests, the curl you issued after creating the river does not do correlate to any API.  
On Friday, May 20, 2011 at 11:36 PM, Scott Feinberg wrote:

> Hi,
> 
> I posted here but seeing as they don't even have a tag for river-  
> plugin, it's probably more effective on here.
> 
> [elasticsearch - CouchDB, Elastic Search, and River Plugin not operating correctly - Stack Overflow](http://stackoverflow.com/questions/6077148/couchdb-elastic-search-and-river-plugin-not-operating-correctly)
> 
> I'm trying to get Elasticsearch to work, specifically with the River  
> Plugin. For some reason I just can't get it to work. I've included the  
> procedure I'm using to try and do it, found here:  
> [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/tutorials/2010/08/01/couchb-integration.html)
> 
> curl -XDELETE '[http://localhost:9200/\_all/](http://localhost:9200/_all/)'  
> Response:
> 
> {"ok":true,"acknowledged":true}  
> This is so I know I'm working with an empty set of elasticsearch  
> instances.
> 
> I have an existing database, called test and the river plugin has  
> already been installed. Is there anyway to test to confirm the River  
> Plugin is installed and running?
> 
> I issue the following command:
> 
> curl -XPUT '[http://localhost:9200/\_river/my\_index/\_meta](http://localhost:9200/_river/my_index/_meta)' -d '{  
> "type" : "couchdb",  
> "couchdb" : {  
> "host" : "localhost",  
> "port" : 5984,  
> "db" : "my\_couch\_db",  
> "filter" : null  
> }  
> }'  
> my\_couch\_db is a real database, I see it in Futon. There is a document  
> in it.
> 
> Response:
> 
> {"ok":true,"\_index":"\_river","\_type":"my\_index","\_id":"\_meta","\_version":  
> 1}  
> Now at this point, my understanding is elasticseach should be working  
> as I saw in the tutorial.
> 
> I try to query, just to find anything. I go to
> 
> [http://localhost:9200/my\_couch\_db/my\_couch\_db](http://localhost:9200/my_couch_db/my_couch_db).  
> Response:
> 
> No handler found for uri [/my\_couch\_db/my\_couch\_db] and method [GET]  
> What's weird is when I go to localhost:5984/my\_couch\_db/\_\_changes
> 
> I get {"error":"not\_found","reason":"missing"}
> 
> Anyone have any idea what part of this I'm screwing up?
> 
> Thanks,
> 
> --Scott

---

<div class="post-metadata">

**Author:** ![dpilato](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dpilato/32/2449_2.png) [@dpilato](https://discuss.elastic.co/u/dpilato)\
**Post date:** [May 24, 2011, 1:02pm UTC](https://discuss.elastic.co/t/elastic-search-couchdb-and-river-plugin-problems/4450/3 "2011-05-24T13:02:24Z")

</div>

As Shay said, there is something wrong. You try to access to

[http://localhost:9200/my\_couch\_db/my\_couch\_db](http://localhost:9200/my_couch_db/my_couch_db) [http://localhost:9200/my\_couch\_db/my\_couch\_db](http://localhost:9200/my_couch_db/my_couch_db)

But, you add the river to my\_index

curl -XPUT ' [http://localhost:9200/\_river/my\_index/\_meta'](http://localhost:9200/_river/my_index/_meta') [http://localhost:9200/\_river/my\_index/\_meta](http://localhost:9200/_river/my_index/_meta)'

So I suppose that you should look at [http://localhost:9200/my\_index/](http://localhost:9200/my_index/)

Try this :

curl -XGET [http://localhost:9200/my\_index/\_search](http://localhost:9200/my_index/_search) -d '{}'

You should see your document…

Hope this helps,  
David.

De : Shay Banon [[mailto:shay.banon@elasticsearch.com](mailto:shay.banon@elasticsearch.com)]  
Envoyé : mardi 24 mai 2011 13:45  
À : [users@elasticsearch.com](mailto:users@elasticsearch.com)  
Objet : Re: Elastic Search, CouchDB and River Plugin Problems

You need to issue some search requests, the curl you issued after creating the river does not do correlate to any API.

On Friday, May 20, 2011 at 11:36 PM, Scott Feinberg wrote:

Hi,

I posted here but seeing as they don't even have a tag for river-  
plugin, it's probably more effective on here.

> <https://stackoverflow.com/questions/6077148/couchdb-elastic-search-and-river-plugin-not-operating-correctly>

I'm trying to get ElasticSearch to work, specifically with the River  
Plugin. For some reason I just can't get it to work. I've included the  
procedure I'm using to try and do it, found here:  
[http://www.elasticsearch.org/tutorials/2010/08/01/couchb-integration.html](http://www.elasticsearch.org/tutorials/2010/08/01/couchb-integration.html)

curl -XDELETE '[http://localhost:9200/\_all/](http://localhost:9200/_all/)'  
Response:

{"ok":true,"acknowledged":true}  
This is so I know I'm working with an empty set of elasticsearch  
instances.

I have an existing database, called test and the river plugin has  
already been installed. Is there anyway to test to confirm the River  
Plugin is installed and running?

I issue the following command:

curl -XPUT '[http://localhost:9200/\_river/my\_index/\_meta](http://localhost:9200/_river/my_index/_meta)' -d '{  
"type" : "couchdb",  
"couchdb" : {  
"host" : "localhost",  
"port" : 5984,  
"db" : "my\_couch\_db",  
"filter" : null  
}  
}'  
my\_couch\_db is a real database, I see it in Futon. There is a document  
in it.

Response:

{"ok":true,"\_index":"\_river","\_type":"my\_index","\_id":"\_meta","\_version":  
1}  
Now at this point, my understanding is elasticseach should be working  
as I saw in the tutorial.

I try to query, just to find anything. I go to

[http://localhost:9200/my\_couch\_db/my\_couch\_db](http://localhost:9200/my_couch_db/my_couch_db).  
Response:

No handler found for uri [/my\_couch\_db/my\_couch\_db] and method [GET]  
What's weird is when I go to localhost:5984/my\_couch\_db/\_\_changes

I get {"error":"not\_found","reason":"missing"}

Anyone have any idea what part of this I'm screwing up?

Thanks,

--Scott

---

<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:05am UTC](https://discuss.elastic.co/t/elastic-search-couchdb-and-river-plugin-problems/4450/4 "2017-07-06T04:05:29Z")

</div>


