# Elastic search with CouchDB river plugin - Can't find any documents

**URL:** <https://discuss.elastic.co/t/elastic-search-with-couchdb-river-plugin-cant-find-any-documents/12263>\
**Category:** Elasticsearch\
**Created:** [June 4, 2013, 9:26pm UTC](https://discuss.elastic.co/t/elastic-search-with-couchdb-river-plugin-cant-find-any-documents/12263 "2013-06-04T21:26:41Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![Yannis\_Psarras](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/yannis_psarras/32/68945_2.png) [@Yannis\_Psarras](https://discuss.elastic.co/u/Yannis_Psarras)\
**Post date:** [June 4, 2013, 9:26pm UTC](https://discuss.elastic.co/t/elastic-search-with-couchdb-river-plugin-cant-find-any-documents/12263/1 "2013-06-04T21:26:41Z")

</div>

I recently started using elastic search and couchdb and I have the  
following problem. I have a couch database with a bunch of documents. I add  
a couch db river index on elastic search and I expect to have those  
documents indexed and searchable. But when I search for anything through ES  
I dont get any results. The command flow is as follows:

The command above verifies that there are 4 documents in the couch db  
instance

curl -H "Content-Type: application/json" -X GET [http://localhost:5984/my\_db](http://localhost:5984/my_db)

{"db\_name":"my\_db","doc\_count":4,"doc\_del\_count":0,"update\_seq":4,"purge\_seq":0,"compact\_running":false,"disk\_size":16482,"data\_size":646,"instance\_start\_time":"1370204643908592","disk\_format\_version":6,"committed\_update\_seq":4}

The \_changes output:

curl -H "Content-Type: application/json" -X GET [http://localhost:5984/my\_db/\_changes](http://localhost:5984/my_db/_changes)  
{"results":[  
{"seq":1,"id":"1","changes":[{"rev":"1-40d928a959dd52d183ab7c413fabca92"}]},  
{"seq":2,"id":"2","changes":[{"rev":"1-42212757a56b240f5205266b1969e890"}]},  
{"seq":3,"id":"3","changes":[{"rev":"1-f59c2ae7acacb68d9414be05d56ed33a"}]},  
{"seq":4,"id":"4","changes":[{"rev":"1-e86cf1c287c16906e81d901365b9bf98"}]}  
],  
"last\_seq":4}

Now, below I m creating my index in ES.

curl -XPUT '[http://localhost:9200/\_river/my\_db/\_meta](http://localhost:9200/_river/my_db/_meta)' -d '{ "type" : "couchdb", "couchdb" : { "host" : "localhost", "port" : 5984, "db" : "my\_db", "filter" : null } }'

{"ok":true,"\_index":"\_river","\_type":"my\_db","\_id":"\_meta","\_version":1}

But I dont get anything back.

curl -XGET "[http://localhost:9200/my\_db/my\_db/\_search?pretty=true](http://localhost:9200/my_db/my_db/_search?pretty=true)"  
{  
"took" : 2,  
"timed\_out" : false,  
"\_shards" : {  
"total" : 5,  
"successful" : 5,  
"failed" : 0  
},  
"hits" : {  
"total" : 0,  
"max\_score" : null,  
"hits" : []  
}  
}

Is there anything I m missing?

Thanks, Yannis

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [June 4, 2013, 9:53pm UTC](https://discuss.elastic.co/t/elastic-search-with-couchdb-river-plugin-cant-find-any-documents/12263/2 "2013-06-04T21:53:31Z")

</div>

Not sure that default type is dbname.  
What do you get with:  
curl -XGET "[http://localhost:9200/my\_db/\_search?q=\*&pretty=true](http://localhost:9200/my_db/_search?q=*&pretty=true)"  
?

--  
David 😉  
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs

Le 4 juin 2013 à 23:26, Yannis Psarras [yannis.psarras@gmail.com](mailto:yannis.psarras@gmail.com) a écrit :

I recently started using elastic search and couchdb and I have the following problem. I have a couch database with a bunch of documents. I add a couch db river index on elastic search and I expect to have those documents indexed and searchable. But when I search for anything through ES I dont get any results. The command flow is as follows:

The command above verifies that there are 4 documents in the couch db instance

curl -H "Content-Type: application/json" -X GET [http://localhost:5984/my\_db](http://localhost:5984/my_db)

{"db\_name":"my\_db","doc\_count":4,"doc\_del\_count":0,"update\_seq":4,"purge\_seq":0,"compact\_running":false,"disk\_size":16482,"data\_size":646,"instance\_start\_time":"1370204643908592","disk\_format\_version":6,"committed\_update\_seq":4}  
The \_changes output:

curl -H "Content-Type: application/json" -X GET [http://localhost:5984/my\_db/\_changes](http://localhost:5984/my_db/_changes)  
{"results":[  
{"seq":1,"id":"1","changes":[{"rev":"1-40d928a959dd52d183ab7c413fabca92"}]},  
{"seq":2,"id":"2","changes":[{"rev":"1-42212757a56b240f5205266b1969e890"}]},  
{"seq":3,"id":"3","changes":[{"rev":"1-f59c2ae7acacb68d9414be05d56ed33a"}]},  
{"seq":4,"id":"4","changes":[{"rev":"1-e86cf1c287c16906e81d901365b9bf98"}]}  
],  
"last\_seq":4}  
Now, below I m creating my index in ES.

curl -XPUT '[http://localhost:9200/\_river/my\_db/\_meta](http://localhost:9200/_river/my_db/_meta)' -d '{ "type" : "couchdb", "couchdb" : { "host" : "localhost", "port" : 5984, "db" : "my\_db", "filter" : null } }'

{"ok":true,"\_index":"\_river","\_type":"my\_db","\_id":"\_meta","\_version":1}  
But I dont get anything back.

curl -XGET "[http://localhost:9200/my\_db/my\_db/\_search?pretty=true](http://localhost:9200/my_db/my_db/_search?pretty=true)"  
{  
"took" : 2,  
"timed\_out" : false,  
"\_shards" : {  
"total" : 5,  
"successful" : 5,  
"failed" : 0  
},  
"hits" : {  
"total" : 0,  
"max\_score" : null,  
"hits" : []  
}  
}  
Is there anything I m missing?

Thanks, Yannis

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![Yannis\_Psarras](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/yannis_psarras/32/68945_2.png) [@Yannis\_Psarras](https://discuss.elastic.co/u/Yannis_Psarras)\
**Post date:** [June 4, 2013, 10:17pm UTC](https://discuss.elastic.co/t/elastic-search-with-couchdb-river-plugin-cant-find-any-documents/12263/3 "2013-06-04T22:17:49Z")

</div>

I get the following:

curl -XGET "[http://localhost:9200/my\_db/\_search?pretty=true](http://localhost:9200/my_db/_search?pretty=true)  
[http://localhost:9200/my\_db/my\_db/\_search?pretty=true](http://localhost:9200/my_db/my_db/_search?pretty=true)"  
{  
"took" : 2,  
"timed\_out" : false,  
"\_shards" : {  
"total" : 5,  
"successful" : 5,  
"failed" : 0  
},  
"hits" : {  
"total" : 0,  
"max\_score" : null,  
"hits" :   
}  
}

On Wed, Jun 5, 2013 at 12:53 AM, David Pilato [david@pilato.fr](mailto:david@pilato.fr) wrote:

> Not sure that default type is dbname.  
> What do you get with:
> 
> curl -XGET "[http://localhost:9200/my\_db/\_search?q=\*&pretty=true](http://localhost:9200/my_db/_search?q=*&pretty=true)"
> 
> ?
> 
> --  
> David 😉  
> Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs
> 
> Le 4 juin 2013 à 23:26, Yannis Psarras [yannis.psarras@gmail.com](mailto:yannis.psarras@gmail.com) a  
> écrit :
> 
> I recently started using Elasticsearch and couchdb and I have the  
> following problem. I have a couch database with a bunch of documents. I add  
> a couch db river index on Elasticsearch and I expect to have those  
> documents indexed and searchable. But when I search for anything through ES  
> I dont get any results. The command flow is as follows:
> 
> The command above verifies that there are 4 documents in the couch db  
> instance
> 
> curl -H "Content-Type: application/json" -X GET [http://localhost:5984/my\_db](http://localhost:5984/my_db)
> 
> {"db\_name":"my\_db","doc\_count":4,"doc\_del\_count":0,"update\_seq":4,"purge\_seq":0,"compact\_running":false,"disk\_size":16482,"data\_size":646,"instance\_start\_time":"1370204643908592","disk\_format\_version":6,"committed\_update\_seq":4}
> 
> The \_changes output:
> 
> curl -H "Content-Type: application/json" -X GET [http://localhost:5984/my\_db/\_changes](http://localhost:5984/my_db/_changes)  
> {"results":[  
> {"seq":1,"id":"1","changes":[{"rev":"1-40d928a959dd52d183ab7c413fabca92"}]},  
> {"seq":2,"id":"2","changes":[{"rev":"1-42212757a56b240f5205266b1969e890"}]},  
> {"seq":3,"id":"3","changes":[{"rev":"1-f59c2ae7acacb68d9414be05d56ed33a"}]},  
> {"seq":4,"id":"4","changes":[{"rev":"1-e86cf1c287c16906e81d901365b9bf98"}]}  
> ],  
> "last\_seq":4}
> 
> Now, below I m creating my index in ES.
> 
> curl -XPUT '[http://localhost:9200/\_river/my\_db/\_meta](http://localhost:9200/_river/my_db/_meta)' -d '{ "type" : "couchdb", "couchdb" : { "host" : "localhost", "port" : 5984, "db" : "my\_db", "filter" : null } }'
> 
> {"ok":true,"\_index":"\_river","\_type":"my\_db","\_id":"\_meta","\_version":1}
> 
> But I dont get anything back.
> 
> curl -XGET "[http://localhost:9200/my\_db/my\_db/\_search?pretty=true](http://localhost:9200/my_db/my_db/_search?pretty=true)"  
> {  
> "took" : 2,  
> "timed\_out" : false,  
> "\_shards" : {  
> "total" : 5,  
> "successful" : 5,  
> "failed" : 0  
> },  
> "hits" : {  
> "total" : 0,  
> "max\_score" : null,  
> "hits" :   
> }  
> }
> 
> Is there anything I m missing?
> 
> Thanks, Yannis
> 
> --  
> You received this message because you are subscribed to the Google Groups  
> "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an  
> email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).
> 
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> 
> --  
> You received this message because you are subscribed to a topic in the  
> Google Groups "elasticsearch" group.  
> To unsubscribe from this topic, visit  
> [https://groups.google.com/d/topic/elasticsearch/FUJj2c4ycnc/unsubscribe?hl=en-US](https://groups.google.com/d/topic/elasticsearch/FUJj2c4ycnc/unsubscribe?hl=en-US)  
> .  
> To unsubscribe from this group and all its topics, send an email to  
> [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![Yannis\_Psarras](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/yannis_psarras/32/68945_2.png) [@Yannis\_Psarras](https://discuss.elastic.co/u/Yannis_Psarras)\
**Post date:** [June 4, 2013, 10:19pm UTC](https://discuss.elastic.co/t/elastic-search-with-couchdb-river-plugin-cant-find-any-documents/12263/4 "2013-06-04T22:19:04Z")

</div>

And with the q=\* I get the same really as above

(for query: [http://localhost:9200/my\_db/\_search?q=\*&pretty=true](http://localhost:9200/my_db/_search?q=*&pretty=true))

On Wed, Jun 5, 2013 at 1:17 AM, Yannis Psarras [yannis.psarras@gmail.com](mailto:yannis.psarras@gmail.com)wrote:

> I get the following:
> 
> curl -XGET "[http://localhost:9200/my\_db/\_search?pretty=true](http://localhost:9200/my_db/_search?pretty=true) [http://localhost:9200/my\_db/my\_db/\_search?pretty=true](http://localhost:9200/my_db/my_db/_search?pretty=true)"  
> {  
> "took" : 2,  
> "timed\_out" : false,  
> "\_shards" : {  
> "total" : 5,  
> "successful" : 5,  
> "failed" : 0  
> },  
> "hits" : {  
> "total" : 0,  
> "max\_score" : null,  
> "hits" :   
> }  
> }
> 
> On Wed, Jun 5, 2013 at 12:53 AM, David Pilato [david@pilato.fr](mailto:david@pilato.fr) wrote:
> 
> > Not sure that default type is dbname.  
> > What do you get with:
> > 
> > curl -XGET "[http://localhost:9200/my\_db/\_search?q=\*&pretty=true](http://localhost:9200/my_db/_search?q=*&pretty=true)"
> > 
> > ?
> > 
> > --  
> > David 😉  
> > Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs
> > 
> > Le 4 juin 2013 à 23:26, Yannis Psarras [yannis.psarras@gmail.com](mailto:yannis.psarras@gmail.com) a  
> > écrit :
> > 
> > I recently started using Elasticsearch and couchdb and I have the  
> > following problem. I have a couch database with a bunch of documents. I add  
> > a couch db river index on Elasticsearch and I expect to have those  
> > documents indexed and searchable. But when I search for anything through ES  
> > I dont get any results. The command flow is as follows:
> > 
> > The command above verifies that there are 4 documents in the couch db  
> > instance
> > 
> > curl -H "Content-Type: application/json" -X GET [http://localhost:5984/my\_db](http://localhost:5984/my_db)
> > 
> > {"db\_name":"my\_db","doc\_count":4,"doc\_del\_count":0,"update\_seq":4,"purge\_seq":0,"compact\_running":false,"disk\_size":16482,"data\_size":646,"instance\_start\_time":"1370204643908592","disk\_format\_version":6,"committed\_update\_seq":4}
> > 
> > The \_changes output:
> > 
> > curl -H "Content-Type: application/json" -X GET [http://localhost:5984/my\_db/\_changes](http://localhost:5984/my_db/_changes)  
> > {"results":[  
> > {"seq":1,"id":"1","changes":[{"rev":"1-40d928a959dd52d183ab7c413fabca92"}]},  
> > {"seq":2,"id":"2","changes":[{"rev":"1-42212757a56b240f5205266b1969e890"}]},  
> > {"seq":3,"id":"3","changes":[{"rev":"1-f59c2ae7acacb68d9414be05d56ed33a"}]},  
> > {"seq":4,"id":"4","changes":[{"rev":"1-e86cf1c287c16906e81d901365b9bf98"}]}  
> > ],  
> > "last\_seq":4}
> > 
> > Now, below I m creating my index in ES.
> > 
> > curl -XPUT '[http://localhost:9200/\_river/my\_db/\_meta](http://localhost:9200/_river/my_db/_meta)' -d '{ "type" : "couchdb", "couchdb" : { "host" : "localhost", "port" : 5984, "db" : "my\_db", "filter" : null } }'
> > 
> > {"ok":true,"\_index":"\_river","\_type":"my\_db","\_id":"\_meta","\_version":1}
> > 
> > But I dont get anything back.
> > 
> > curl -XGET "[http://localhost:9200/my\_db/my\_db/\_search?pretty=true](http://localhost:9200/my_db/my_db/_search?pretty=true)"  
> > {  
> > "took" : 2,  
> > "timed\_out" : false,  
> > "\_shards" : {  
> > "total" : 5,  
> > "successful" : 5,  
> > "failed" : 0  
> > },  
> > "hits" : {  
> > "total" : 0,  
> > "max\_score" : null,  
> > "hits" :   
> > }  
> > }
> > 
> > Is there anything I m missing?
> > 
> > Thanks, Yannis
> > 
> > --  
> > You received this message because you are subscribed to the Google Groups  
> > "elasticsearch" group.  
> > To unsubscribe from this group and stop receiving emails from it, send an  
> > email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).
> > 
> > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> > 
> > --  
> > You received this message because you are subscribed to a topic in the  
> > Google Groups "elasticsearch" group.  
> > To unsubscribe from this topic, visit  
> > [https://groups.google.com/d/topic/elasticsearch/FUJj2c4ycnc/unsubscribe?hl=en-US](https://groups.google.com/d/topic/elasticsearch/FUJj2c4ycnc/unsubscribe?hl=en-US)  
> > .  
> > To unsubscribe from this group and all its topics, send an email to  
> > [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [June 5, 2013, 5:59am UTC](https://discuss.elastic.co/t/elastic-search-with-couchdb-river-plugin-cant-find-any-documents/12263/5 "2013-06-05T05:59:04Z")

</div>

Just to double check, could you run:  
[http://localhost:9200/\_search?q=\*&pretty=true](http://localhost:9200/_search?q=*&pretty=true)

--  
David 😉  
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs

Le 5 juin 2013 à 00:19, Yannis Psarras [yannis.psarras@gmail.com](mailto:yannis.psarras@gmail.com) a écrit :

And with the q=\* I get the same really as above

(for query: [http://localhost:9200/my\_db/\_search?q=\*&pretty=true](http://localhost:9200/my_db/_search?q=*&pretty=true))

On Wed, Jun 5, 2013 at 1:17 AM, Yannis Psarras [yannis.psarras@gmail.com](mailto:yannis.psarras@gmail.com) wrote:

> I get the following:
> 
> curl -XGET "[http://localhost:9200/my\_db/\_search?pretty=true](http://localhost:9200/my_db/_search?pretty=true)"  
> {  
> "took" : 2,  
> "timed\_out" : false,  
> "\_shards" : {  
> "total" : 5,  
> "successful" : 5,  
> "failed" : 0  
> },  
> "hits" : {  
> "total" : 0,  
> "max\_score" : null,  
> "hits" :   
> }  
> }
> 
> On Wed, Jun 5, 2013 at 12:53 AM, David Pilato [david@pilato.fr](mailto:david@pilato.fr) wrote:
> 
> > Not sure that default type is dbname.  
> > What do you get with:
> > 
> > curl -XGET "[http://localhost:9200/my\_db/\_search?q=\*&pretty=true](http://localhost:9200/my_db/_search?q=*&pretty=true)"  
> > ?
> > 
> > --  
> > David 😉  
> > Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs
> > 
> > Le 4 juin 2013 à 23:26, Yannis Psarras [yannis.psarras@gmail.com](mailto:yannis.psarras@gmail.com) a écrit :
> > 
> > I recently started using Elasticsearch and couchdb and I have the following problem. I have a couch database with a bunch of documents. I add a couch db river index on Elasticsearch and I expect to have those documents indexed and searchable. But when I search for anything through ES I dont get any results. The command flow is as follows:
> > 
> > The command above verifies that there are 4 documents in the couch db instance
> > 
> > curl -H "Content-Type: application/json" -X GET [http://localhost:5984/my\_db](http://localhost:5984/my_db)
> > 
> > {"db\_name":"my\_db","doc\_count":4,"doc\_del\_count":0,"update\_seq":4,"purge\_seq":0,"compact\_running":false,"disk\_size":16482,"data\_size":646,"instance\_start\_time":"1370204643908592","disk\_format\_version":6,"committed\_update\_seq":4}  
> > The \_changes output:
> > 
> > curl -H "Content-Type: application/json" -X GET [http://localhost:5984/my\_db/\_changes](http://localhost:5984/my_db/_changes)  
> > {"results":[  
> > {"seq":1,"id":"1","changes":[{"rev":"1-40d928a959dd52d183ab7c413fabca92"}]},  
> > {"seq":2,"id":"2","changes":[{"rev":"1-42212757a56b240f5205266b1969e890"}]},  
> > {"seq":3,"id":"3","changes":[{"rev":"1-f59c2ae7acacb68d9414be05d56ed33a"}]},  
> > {"seq":4,"id":"4","changes":[{"rev":"1-e86cf1c287c16906e81d901365b9bf98"}]}  
> > ],  
> > "last\_seq":4}  
> > Now, below I m creating my index in ES.
> > 
> > curl -XPUT '[http://localhost:9200/\_river/my\_db/\_meta](http://localhost:9200/_river/my_db/_meta)' -d '{ "type" : "couchdb", "couchdb" : { "host" : "localhost", "port" : 5984, "db" : "my\_db", "filter" : null } }'
> > 
> > {"ok":true,"\_index":"\_river","\_type":"my\_db","\_id":"\_meta","\_version":1}  
> > But I dont get anything back.
> > 
> > curl -XGET "[http://localhost:9200/my\_db/my\_db/\_search?pretty=true](http://localhost:9200/my_db/my_db/_search?pretty=true)"  
> > {  
> > "took" : 2,  
> > "timed\_out" : false,  
> > "\_shards" : {  
> > "total" : 5,  
> > "successful" : 5,  
> > "failed" : 0  
> > },  
> > "hits" : {  
> > "total" : 0,  
> > "max\_score" : null,  
> > "hits" :   
> > }  
> > }  
> > Is there anything I m missing?
> > 
> > Thanks, Yannis
> > 
> > --  
> > You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
> > To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).
> > 
> > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> > 
> > --  
> > You received this message because you are subscribed to a topic in the Google Groups "elasticsearch" group.  
> > To unsubscribe from this topic, visit [https://groups.google.com/d/topic/elasticsearch/FUJj2c4ycnc/unsubscribe?hl=en-US](https://groups.google.com/d/topic/elasticsearch/FUJj2c4ycnc/unsubscribe?hl=en-US).  
> > To unsubscribe from this group and all its topics, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![Bao\_Quan\_Ho](https://avatars.discourse-cdn.com/v4/letter/b/8baadc/32.png) [@Bao\_Quan\_Ho](https://discuss.elastic.co/u/Bao_Quan_Ho)\
**Post date:** [February 2, 2015, 10:43am UTC](https://discuss.elastic.co/t/elastic-search-with-couchdb-river-plugin-cant-find-any-documents/12263/6 "2015-02-02T10:43:25Z")

</div>

David,

Sorry for the old post revival, but I'm getting this same error with no  
hits with Couchdb rivers (2.4.1), Elasticsearch (1.4.2), and Couchdb  
(1.6.1). I am fairly new to using couch-rivers but I've installed all the  
applications and they are running on Centos 7. Can you please see if you  
notice anything wrong? I've looked everywhere but can not find a solution.  
Thank you in advance

I added some dummy data into my couchdb database "testdb":

# curl -XGET localhost:5984/testdb/\_changes

{"results":[  
{"seq":1,"id":"1","changes":[{"rev":"1-0291....."}]},  
{"seq":2,"id":"2","changes":[{"rev":"1-1945....."}]},  
{"seq":3,"id":"3","changes":[{"rev":"1-62a5....."}]},  
{"seq":4,"id":"4","changes":[{"rev":"1-7e93....."}]},  
],  
"last\_seq":4}

I run this to make the index:

# curl -X PUT '[http://localhost:9200/\_river/testdb/\_meta](http://localhost:9200/_river/testdb/_meta)' -d '{ "type" :

"couchdb", "couchdb" : { "host" : "localhost", "port" : 5984, "db" :  
"testdb", "filter" : null }"'

Get a return of:

# 

{"index":"\_river","\_type":"testdb","\_id":"\_meta","\_version":1,"created":true"}

When I try to do the query:

# curl localhost:9200/testdb/testdb/\_search?pretty=1

{  
"took" : 1,  
"timed\_out" : false,  
"\_shards" : {  
"total" : 5,  
"successful" : 5,  
"failed" : 0  
},  
"hits" : {  
"total" : 0,  
"max\_score" : null,  
"hits" :   
}  
}

When I use the

# curl [http://localhost:9200/\_search?q=\*&pretty=true](http://localhost:9200/_search?q=*&pretty=true)

{  
"took" : 2,  
"timed\_out" : false,  
"\_shards" : {  
"total" : 16,  
"successful" : 16,  
"failed" : 0  
},  
"hits" : {  
"total" : 1,  
"max\_score" : 1.0,  
"hits" : [ {  
"\_index" : "\_river",  
"\_type" : "testdb",  
"\_id" : "\_meta",  
"\_score" : "1.0",  
"\_source" : {"type" "couchdb", "couchdb" : {"host" : "localhost",  
"port": "5984", "db" : "testdb", "filter" : null}}  
} ]  
}  
}

On Wednesday, June 5, 2013 at 1:59:04 AM UTC-4, David Pilato wrote:

> Just to double check, could you run:  
> [http://localhost:9200/\_search?q=\*&pretty=true](http://localhost:9200/_search?q=*&pretty=true)  
> [http://localhost:9200/my\_db/\_search?q=\*&pretty=true](http://localhost:9200/my_db/_search?q=*&pretty=true)
> 
> --  
> David 😉  
> Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs
> 
> Le 5 juin 2013 à 00:19, Yannis Psarras \<[yannis....@gmail.com](mailto:yannis....@gmail.com) \<javascript:\>\>  
> a écrit :
> 
> And with the q=\* I get the same really as above
> 
> (for query: [http://localhost:9200/my\_db/\_search?q=\*&pretty=true](http://localhost:9200/my_db/_search?q=*&pretty=true))
> 
> On Wed, Jun 5, 2013 at 1:17 AM, Yannis Psarras \<[yannis....@gmail.com](mailto:yannis....@gmail.com)  
> \<javascript:\>\> wrote:
> 
> > I get the following:
> > 
> > curl -XGET "[http://localhost:9200/my\_db/\_search?pretty=true](http://localhost:9200/my_db/_search?pretty=true) [http://localhost:9200/my\_db/my\_db/\_search?pretty=true](http://localhost:9200/my_db/my_db/_search?pretty=true)"  
> > {  
> > "took" : 2,  
> > "timed\_out" : false,  
> > "\_shards" : {  
> > "total" : 5,  
> > "successful" : 5,  
> > "failed" : 0  
> > },  
> > "hits" : {  
> > "total" : 0,  
> > "max\_score" : null,  
> > "hits" :   
> > }  
> > }
> > 
> > On Wed, Jun 5, 2013 at 12:53 AM, David Pilato \<[da...@pilato.fr](mailto:da...@pilato.fr)  
> > \<javascript:\>\> wrote:
> > 
> > > Not sure that default type is dbname.  
> > > What do you get with:
> > > 
> > > curl -XGET "[http://localhost:9200/my\_db/\_search?q=\*&pretty=true](http://localhost:9200/my_db/_search?q=*&pretty=true)"
> > > 
> > > ?
> > > 
> > > --  
> > > David 😉  
> > > Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs
> > > 
> > > Le 4 juin 2013 à 23:26, Yannis Psarras \<[yannis....@gmail.com](mailto:yannis....@gmail.com)  
> > > \<javascript:\>\> a écrit :
> > > 
> > > I recently started using Elasticsearch and couchdb and I have the  
> > > following problem. I have a couch database with a bunch of documents. I add  
> > > a couch db river index on Elasticsearch and I expect to have those  
> > > documents indexed and searchable. But when I search for anything through ES  
> > > I dont get any results. The command flow is as follows:
> > > 
> > > The command above verifies that there are 4 documents in the couch db  
> > > instance
> > > 
> > > curl -H "Content-Type: application/json" -X GET [http://localhost:5984/my\_db](http://localhost:5984/my_db)
> > > 
> > > {"db\_name":"my\_db","doc\_count":4,"doc\_del\_count":0,"update\_seq":4,"purge\_seq":0,"compact\_running":false,"disk\_size":16482,"data\_size":646,"instance\_start\_time":"1370204643908592","disk\_format\_version":6,"committed\_update\_seq":4}
> > > 
> > > The \_changes output:
> > > 
> > > curl -H "Content-Type: application/json" -X GET [http://localhost:5984/my\_db/\_changes](http://localhost:5984/my_db/_changes)  
> > > {"results":[  
> > > {"seq":1,"id":"1","changes":[{"rev":"1-40d928a959dd52d183ab7c413fabca92"}]},  
> > > {"seq":2,"id":"2","changes":[{"rev":"1-42212757a56b240f5205266b1969e890"}]},  
> > > {"seq":3,"id":"3","changes":[{"rev":"1-f59c2ae7acacb68d9414be05d56ed33a"}]},  
> > > {"seq":4,"id":"4","changes":[{"rev":"1-e86cf1c287c16906e81d901365b9bf98"}]}  
> > > ],  
> > > "last\_seq":4}
> > > 
> > > Now, below I m creating my index in ES.
> > > 
> > > curl -XPUT '[http://localhost:9200/\_river/my\_db/\_meta](http://localhost:9200/_river/my_db/_meta)' -d '{ "type" : "couchdb", "couchdb" : { "host" : "localhost", "port" : 5984, "db" : "my\_db", "filter" : null } }'
> > > 
> > > {"ok":true,"\_index":"\_river","\_type":"my\_db","\_id":"\_meta","\_version":1}
> > > 
> > > But I dont get anything back.
> > > 
> > > curl -XGET "[http://localhost:9200/my\_db/my\_db/\_search?pretty=true](http://localhost:9200/my_db/my_db/_search?pretty=true)"  
> > > {  
> > > "took" : 2,  
> > > "timed\_out" : false,  
> > > "\_shards" : {  
> > > "total" : 5,  
> > > "successful" : 5,  
> > > "failed" : 0  
> > > },  
> > > "hits" : {  
> > > "total" : 0,  
> > > "max\_score" : null,  
> > > "hits" :   
> > > }  
> > > }
> > > 
> > > Is there anything I m missing?
> > > 
> > > Thanks, Yannis
> > > 
> > > --  
> > > You received this message because you are subscribed to the Google  
> > > Groups "elasticsearch" group.  
> > > To unsubscribe from this group and stop receiving emails from it, send  
> > > an email to [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com) \<javascript:\>.
> > > 
> > > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> > > 
> > > --  
> > > You received this message because you are subscribed to a topic in the  
> > > Google Groups "elasticsearch" group.  
> > > To unsubscribe from this topic, visit  
> > > [https://groups.google.com/d/topic/elasticsearch/FUJj2c4ycnc/unsubscribe?hl=en-US](https://groups.google.com/d/topic/elasticsearch/FUJj2c4ycnc/unsubscribe?hl=en-US)  
> > > .  
> > > To unsubscribe from this group and all its topics, send an email to  
> > > [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com) \<javascript:\>.  
> > > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> 
> --  
> You received this message because you are subscribed to the Google Groups  
> "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an  
> email to [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com) \<javascript:\>.  
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/acdd73d6-e67a-4246-9dd5-75e99c6ffc31%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/acdd73d6-e67a-4246-9dd5-75e99c6ffc31%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [February 2, 2015, 11:35am UTC](https://discuss.elastic.co/t/elastic-search-with-couchdb-river-plugin-cant-find-any-documents/12263/7 "2015-02-02T11:35:32Z")

</div>

Try with:

localhost:9200/testdb/\_search

I think you are using the default type name here which is not IIRC the river name.

## HTH

David 😉  
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs

> Le 2 févr. 2015 à 11:43, Bao-Quan Ho [ho.baoquan@gmail.com](mailto:ho.baoquan@gmail.com) a écrit :
> 
> David,
> 
> Sorry for the old post revival, but I'm getting this same error with no hits with Couchdb rivers (2.4.1), Elasticsearch (1.4.2), and Couchdb (1.6.1). I am fairly new to using couch-rivers but I've installed all the applications and they are running on Centos 7. Can you please see if you notice anything wrong? I've looked everywhere but can not find a solution. Thank you in advance
> 
> I added some dummy data into my couchdb database "testdb":
> 
> # curl -XGET localhost:5984/testdb/\_changes
> 
> {"results":[  
> {"seq":1,"id":"1","changes":[{"rev":"1-0291....."}]},  
> {"seq":2,"id":"2","changes":[{"rev":"1-1945....."}]},  
> {"seq":3,"id":"3","changes":[{"rev":"1-62a5....."}]},  
> {"seq":4,"id":"4","changes":[{"rev":"1-7e93....."}]},  
> ],  
> "last\_seq":4}
> 
> I run this to make the index:
> 
> # curl -X PUT '[http://localhost:9200/\_river/testdb/\_meta](http://localhost:9200/_river/testdb/_meta)' -d '{ "type" : "couchdb", "couchdb" : { "host" : "localhost", "port" : 5984, "db" : "testdb", "filter" : null }"'
> 
> Get a return of:
> 
> # {"index":"\_river","\_type":"testdb","\_id":"\_meta","\_version":1,"created":true"}
> 
> When I try to do the query:
> 
> # curl localhost:9200/testdb/testdb/\_search?pretty=1
> 
> {  
> "took" : 1,  
> "timed\_out" : false,  
> "\_shards" : {  
> "total" : 5,  
> "successful" : 5,  
> "failed" : 0  
> },  
> "hits" : {  
> "total" : 0,  
> "max\_score" : null,  
> "hits" :   
> }  
> }
> 
> When I use the
> 
> # curl [http://localhost:9200/\_search?q=\*&pretty=true](http://localhost:9200/_search?q=*&pretty=true)
> 
> {  
> "took" : 2,  
> "timed\_out" : false,  
> "\_shards" : {  
> "total" : 16,  
> "successful" : 16,  
> "failed" : 0  
> },  
> "hits" : {  
> "total" : 1,  
> "max\_score" : 1.0,  
> "hits" : [ {  
> "\_index" : "\_river",  
> "\_type" : "testdb",  
> "\_id" : "\_meta",  
> "\_score" : "1.0",  
> "\_source" : {"type" "couchdb", "couchdb" : {"host" : "localhost", "port": "5984", "db" : "testdb", "filter" : null}}  
> } ]  
> }  
> }
> 
> > On Wednesday, June 5, 2013 at 1:59:04 AM UTC-4, David Pilato wrote:  
> > Just to double check, could you run:  
> > [http://localhost:9200/\_search?q=\*&pretty=true](http://localhost:9200/_search?q=*&pretty=true)
> > 
> > --  
> > David 😉  
> > Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs
> > 
> > Le 5 juin 2013 à 00:19, Yannis Psarras [yannis....@gmail.com](mailto:yannis....@gmail.com) a écrit :
> > 
> > And with the q=\* I get the same really as above
> > 
> > (for query: [http://localhost:9200/my\_db/\_search?q=\*&pretty=true](http://localhost:9200/my_db/_search?q=*&pretty=true))
> > 
> > > On Wed, Jun 5, 2013 at 1:17 AM, Yannis Psarras [yannis....@gmail.com](mailto:yannis....@gmail.com) wrote:  
> > > I get the following:
> > > 
> > > curl -XGET "[http://localhost:9200/my\_db/\_search?pretty=true](http://localhost:9200/my_db/_search?pretty=true)"  
> > > {  
> > > "took" : 2,  
> > > "timed\_out" : false,  
> > > "\_shards" : {  
> > > "total" : 5,  
> > > "successful" : 5,  
> > > "failed" : 0  
> > > },  
> > > "hits" : {  
> > > "total" : 0,  
> > > "max\_score" : null,  
> > > "hits" :   
> > > }  
> > > }
> > > 
> > > > On Wed, Jun 5, 2013 at 12:53 AM, David Pilato [da...@pilato.fr](mailto:da...@pilato.fr) wrote:  
> > > > Not sure that default type is dbname.  
> > > > What do you get with:  
> > > > curl -XGET "[http://localhost:9200/my\_db/\_search?q=\*&pretty=true](http://localhost:9200/my_db/_search?q=*&pretty=true)"  
> > > > ?
> > > > 
> > > > --  
> > > > David 😉  
> > > > Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs
> > > > 
> > > > Le 4 juin 2013 à 23:26, Yannis Psarras [yannis....@gmail.com](mailto:yannis....@gmail.com) a écrit :
> > > > 
> > > > I recently started using Elasticsearch and couchdb and I have the following problem. I have a couch database with a bunch of documents. I add a couch db river index on Elasticsearch and I expect to have those documents indexed and searchable. But when I search for anything through ES I dont get any results. The command flow is as follows:
> > > > 
> > > > The command above verifies that there are 4 documents in the couch db instance
> > > > 
> > > > curl -H "Content-Type: application/json" -X GET [http://localhost:5984/my\_db](http://localhost:5984/my_db)
> > > > 
> > > > {"db\_name":"my\_db","doc\_count":4,"doc\_del\_count":0,"update\_seq":4,"purge\_seq":0,"compact\_running":false,"disk\_size":16482,"data\_size":646,"instance\_start\_time":"1370204643908592","disk\_format\_version":6,"committed\_update\_seq":4}  
> > > > The \_changes output:
> > > > 
> > > > curl -H "Content-Type: application/json" -X GET [http://localhost:5984/my\_db/\_changes](http://localhost:5984/my_db/_changes)  
> > > > {"results":[  
> > > > {"seq":1,"id":"1","changes":[{"rev":"1-40d928a959dd52d183ab7c413fabca92"}]},  
> > > > {"seq":2,"id":"2","changes":[{"rev":"1-42212757a56b240f5205266b1969e890"}]},  
> > > > {"seq":3,"id":"3","changes":[{"rev":"1-f59c2ae7acacb68d9414be05d56ed33a"}]},  
> > > > {"seq":4,"id":"4","changes":[{"rev":"1-e86cf1c287c16906e81d901365b9bf98"}]}  
> > > > ],  
> > > > "last\_seq":4}  
> > > > Now, below I m creating my index in ES.
> > > > 
> > > > curl -XPUT '[http://localhost:9200/\_river/my\_db/\_meta](http://localhost:9200/_river/my_db/_meta)' -d '{ "type" : "couchdb", "couchdb" : { "host" : "localhost", "port" : 5984, "db" : "my\_db", "filter" : null } }'
> > > > 
> > > > {"ok":true,"\_index":"\_river","\_type":"my\_db","\_id":"\_meta","\_version":1}  
> > > > But I dont get anything back.
> > > > 
> > > > curl -XGET "[http://localhost:9200/my\_db/my\_db/\_search?pretty=true](http://localhost:9200/my_db/my_db/_search?pretty=true)"  
> > > > {  
> > > > "took" : 2,  
> > > > "timed\_out" : false,  
> > > > "\_shards" : {  
> > > > "total" : 5,  
> > > > "successful" : 5,  
> > > > "failed" : 0  
> > > > },  
> > > > "hits" : {  
> > > > "total" : 0,  
> > > > "max\_score" : null,  
> > > > "hits" :   
> > > > }  
> > > > }  
> > > > Is there anything I m missing?
> > > > 
> > > > Thanks, Yannis
> > > > 
> > > > --  
> > > > You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
> > > > To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com).
> > > > 
> > > > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> > > > 
> > > > --  
> > > > You received this message because you are subscribed to a topic in the Google Groups "elasticsearch" group.  
> > > > To unsubscribe from this topic, visit [https://groups.google.com/d/topic/elasticsearch/FUJj2c4ycnc/unsubscribe?hl=en-US](https://groups.google.com/d/topic/elasticsearch/FUJj2c4ycnc/unsubscribe?hl=en-US).  
> > > > To unsubscribe from this group and all its topics, send an email to [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com).  
> > > > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> > 
> > --  
> > You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
> > To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com).  
> > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> 
> --  
> You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/acdd73d6-e67a-4246-9dd5-75e99c6ffc31%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/acdd73d6-e67a-4246-9dd5-75e99c6ffc31%40googlegroups.com).  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/F820A4DF-BC87-4C49-B3E2-2F8BC9ABDAD6%40pilato.fr](https://groups.google.com/d/msgid/elasticsearch/F820A4DF-BC87-4C49-B3E2-2F8BC9ABDAD6%40pilato.fr).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Bao\_Quan\_Ho](https://avatars.discourse-cdn.com/v4/letter/b/8baadc/32.png) [@Bao\_Quan\_Ho](https://discuss.elastic.co/u/Bao_Quan_Ho)\
**Post date:** [February 2, 2015, 4:04pm UTC](https://discuss.elastic.co/t/elastic-search-with-couchdb-river-plugin-cant-find-any-documents/12263/8 "2015-02-02T16:04:41Z")

</div>

Hello I tried as suggested but I get the same outcome:

# curl localhost:9200/testdb/\_search?pretty=1

{  
"took" : 1,  
"timed\_out" : false,  
"\_shards" : {  
"total" : 5,  
"successful" : 5,  
"failed" : 0  
},  
"hits" : {  
"total" : 0,  
"max\_score" : null,  
"hits" :   
}  
}

On Mon, Feb 2, 2015 at 6:35 AM, David Pilato [david@pilato.fr](mailto:david@pilato.fr) wrote:

> Try with:
> 
> localhost:9200/testdb/\_search
> 
> I think you are using the default type name here which is not IIRC the  
> river name.
> 
> ## HTH
> 
> David 😉  
> Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs
> 
> Le 2 févr. 2015 à 11:43, Bao-Quan Ho [ho.baoquan@gmail.com](mailto:ho.baoquan@gmail.com) a écrit :
> 
> David,
> 
> Sorry for the old post revival, but I'm getting this same error with no  
> hits with Couchdb rivers (2.4.1), Elasticsearch (1.4.2), and Couchdb  
> (1.6.1). I am fairly new to using couch-rivers but I've installed all the  
> applications and they are running on Centos 7. Can you please see if you  
> notice anything wrong? I've looked everywhere but can not find a  
> solution. Thank you in advance
> 
> I added some dummy data into my couchdb database "testdb":
> 
> # curl -XGET localhost:5984/testdb/\_changes
> 
> {"results":[  
> {"seq":1,"id":"1","changes":[{"rev":"1-0291....."}]},  
> {"seq":2,"id":"2","changes":[{"rev":"1-1945....."}]},  
> {"seq":3,"id":"3","changes":[{"rev":"1-62a5....."}]},  
> {"seq":4,"id":"4","changes":[{"rev":"1-7e93....."}]},  
> ],  
> "last\_seq":4}
> 
> I run this to make the index:
> 
> # curl -X PUT '[http://localhost:9200/\_river/testdb/\_meta](http://localhost:9200/_river/testdb/_meta)' -d '{ "type" :
> 
> "couchdb", "couchdb" : { "host" : "localhost", "port" : 5984, "db" :  
> "testdb", "filter" : null }"'
> 
> Get a return of:
> 
> # 
> 
> {"index":"\_river","\_type":"testdb","\_id":"\_meta","\_version":1,"created":true"}
> 
> When I try to do the query:
> 
> # curl localhost:9200/testdb/testdb/\_search?pretty=1
> 
> {  
> "took" : 1,  
> "timed\_out" : false,  
> "\_shards" : {  
> "total" : 5,  
> "successful" : 5,  
> "failed" : 0  
> },  
> "hits" : {  
> "total" : 0,  
> "max\_score" : null,  
> "hits" :   
> }  
> }
> 
> When I use the
> 
> # curl [http://localhost:9200/\_search?q=\*&pretty=true](http://localhost:9200/_search?q=*&pretty=true)
> 
> {  
> "took" : 2,  
> "timed\_out" : false,  
> "\_shards" : {  
> "total" : 16,  
> "successful" : 16,  
> "failed" : 0  
> },  
> "hits" : {  
> "total" : 1,  
> "max\_score" : 1.0,  
> "hits" : [ {  
> "\_index" : "\_river",  
> "\_type" : "testdb",  
> "\_id" : "\_meta",  
> "\_score" : "1.0",  
> "\_source" : {"type" "couchdb", "couchdb" : {"host" : "localhost",  
> "port": "5984", "db" : "testdb", "filter" : null}}  
> } ]  
> }  
> }
> 
> On Wednesday, June 5, 2013 at 1:59:04 AM UTC-4, David Pilato wrote:
> 
> > Just to double check, could you run:  
> > [http://localhost:9200/\_search?q=\*&pretty=true](http://localhost:9200/_search?q=*&pretty=true)  
> > [http://localhost:9200/my\_db/\_search?q=\*&pretty=true](http://localhost:9200/my_db/_search?q=*&pretty=true)
> > 
> > --  
> > David 😉  
> > Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs
> > 
> > Le 5 juin 2013 à 00:19, Yannis Psarras [yannis....@gmail.com](mailto:yannis....@gmail.com) a écrit :
> > 
> > And with the q=\* I get the same really as above
> > 
> > (for query: [http://localhost:9200/my\_db/\_search?q=\*&pretty=true](http://localhost:9200/my_db/_search?q=*&pretty=true))
> > 
> > On Wed, Jun 5, 2013 at 1:17 AM, Yannis Psarras [yannis....@gmail.com](mailto:yannis....@gmail.com)  
> > wrote:
> > 
> > > I get the following:
> > > 
> > > curl -XGET "[http://localhost:9200/my\_db/\_search?pretty=true](http://localhost:9200/my_db/_search?pretty=true) [http://localhost:9200/my\_db/my\_db/\_search?pretty=true](http://localhost:9200/my_db/my_db/_search?pretty=true)"  
> > > {  
> > > "took" : 2,  
> > > "timed\_out" : false,  
> > > "\_shards" : {  
> > > "total" : 5,  
> > > "successful" : 5,  
> > > "failed" : 0  
> > > },  
> > > "hits" : {  
> > > "total" : 0,  
> > > "max\_score" : null,  
> > > "hits" :   
> > > }  
> > > }
> > > 
> > > On Wed, Jun 5, 2013 at 12:53 AM, David Pilato [da...@pilato.fr](mailto:da...@pilato.fr) wrote:
> > > 
> > > > Not sure that default type is dbname.  
> > > > What do you get with:
> > > > 
> > > > curl -XGET "[http://localhost:9200/my\_db/\_search?q=\*&pretty=true](http://localhost:9200/my_db/_search?q=*&pretty=true)"
> > > > 
> > > > ?
> > > > 
> > > > --  
> > > > David 😉  
> > > > Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs
> > > > 
> > > > Le 4 juin 2013 à 23:26, Yannis Psarras [yannis....@gmail.com](mailto:yannis....@gmail.com) a écrit :
> > > > 
> > > > I recently started using Elasticsearch and couchdb and I have the  
> > > > following problem. I have a couch database with a bunch of documents. I add  
> > > > a couch db river index on Elasticsearch and I expect to have those  
> > > > documents indexed and searchable. But when I search for anything through ES  
> > > > I dont get any results. The command flow is as follows:
> > > > 
> > > > The command above verifies that there are 4 documents in the couch db  
> > > > instance
> > > > 
> > > > curl -H "Content-Type: application/json" -X GET [http://localhost:5984/my\_db](http://localhost:5984/my_db)
> > > > 
> > > > {"db\_name":"my\_db","doc\_count":4,"doc\_del\_count":0,"update\_seq":4,"purge\_seq":0,"compact\_running":false,"disk\_size":16482,"data\_size":646,"instance\_start\_time":"1370204643908592","disk\_format\_version":6,"committed\_update\_seq":4}
> > > > 
> > > > The \_changes output:
> > > > 
> > > > curl -H "Content-Type: application/json" -X GET [http://localhost:5984/my\_db/\_changes](http://localhost:5984/my_db/_changes)  
> > > > {"results":[  
> > > > {"seq":1,"id":"1","changes":[{"rev":"1-40d928a959dd52d183ab7c413fabca92"}]},  
> > > > {"seq":2,"id":"2","changes":[{"rev":"1-42212757a56b240f5205266b1969e890"}]},  
> > > > {"seq":3,"id":"3","changes":[{"rev":"1-f59c2ae7acacb68d9414be05d56ed33a"}]},  
> > > > {"seq":4,"id":"4","changes":[{"rev":"1-e86cf1c287c16906e81d901365b9bf98"}]}  
> > > > ],  
> > > > "last\_seq":4}
> > > > 
> > > > Now, below I m creating my index in ES.
> > > > 
> > > > curl -XPUT '[http://localhost:9200/\_river/my\_db/\_meta](http://localhost:9200/_river/my_db/_meta)' -d '{ "type" : "couchdb", "couchdb" : { "host" : "localhost", "port" : 5984, "db" : "my\_db", "filter" : null } }'
> > > > 
> > > > {"ok":true,"\_index":"\_river","\_type":"my\_db","\_id":"\_meta","\_version":1}
> > > > 
> > > > But I dont get anything back.
> > > > 
> > > > curl -XGET "[http://localhost:9200/my\_db/my\_db/\_search?pretty=true](http://localhost:9200/my_db/my_db/_search?pretty=true)"  
> > > > {  
> > > > "took" : 2,  
> > > > "timed\_out" : false,  
> > > > "\_shards" : {  
> > > > "total" : 5,  
> > > > "successful" : 5,  
> > > > "failed" : 0  
> > > > },  
> > > > "hits" : {  
> > > > "total" : 0,  
> > > > "max\_score" : null,  
> > > > "hits" :   
> > > > }  
> > > > }
> > > > 
> > > > Is there anything I m missing?
> > > > 
> > > > Thanks, Yannis
> > > > 
> > > > --  
> > > > You received this message because you are subscribed to the Google  
> > > > Groups "elasticsearch" group.  
> > > > To unsubscribe from this group and stop receiving emails from it, send  
> > > > an email to [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com).
> > > > 
> > > > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> > > > 
> > > > --  
> > > > You received this message because you are subscribed to a topic in the  
> > > > Google Groups "elasticsearch" group.  
> > > > To unsubscribe from this topic, visit [https://groups.google.com/d/](https://groups.google.com/d/)  
> > > > topic/elasticsearch/FUJj2c4ycnc/unsubscribe?hl=en-US.  
> > > > To unsubscribe from this group and all its topics, send an email to  
> > > > [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com).  
> > > > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> > 
> > --  
> > You received this message because you are subscribed to the Google Groups  
> > "elasticsearch" group.  
> > To unsubscribe from this group and stop receiving emails from it, send an  
> > email to [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com).  
> > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> 
> --  
> You received this message because you are subscribed to the Google Groups  
> "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an  
> email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/acdd73d6-e67a-4246-9dd5-75e99c6ffc31%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/acdd73d6-e67a-4246-9dd5-75e99c6ffc31%40googlegroups.com)  
> [https://groups.google.com/d/msgid/elasticsearch/acdd73d6-e67a-4246-9dd5-75e99c6ffc31%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/acdd73d6-e67a-4246-9dd5-75e99c6ffc31%40googlegroups.com?utm_medium=email&utm_source=footer)  
> .  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> 
> --  
> You received this message because you are subscribed to a topic in the  
> Google Groups "elasticsearch" group.  
> To unsubscribe from this topic, visit  
> [https://groups.google.com/d/topic/elasticsearch/FUJj2c4ycnc/unsubscribe](https://groups.google.com/d/topic/elasticsearch/FUJj2c4ycnc/unsubscribe).  
> To unsubscribe from this group and all its topics, send an email to  
> [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/F820A4DF-BC87-4C49-B3E2-2F8BC9ABDAD6%40pilato.fr](https://groups.google.com/d/msgid/elasticsearch/F820A4DF-BC87-4C49-B3E2-2F8BC9ABDAD6%40pilato.fr)  
> [https://groups.google.com/d/msgid/elasticsearch/F820A4DF-BC87-4C49-B3E2-2F8BC9ABDAD6%40pilato.fr?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/F820A4DF-BC87-4C49-B3E2-2F8BC9ABDAD6%40pilato.fr?utm_medium=email&utm_source=footer)  
> .
> 
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CABs-q54f5D--\_CERLBoCEf7jH6M73HxnL78OkzQsu%3DZ\_S65ouA%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CABs-q54f5D--_CERLBoCEf7jH6M73HxnL78OkzQsu%3DZ_S65ouA%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [February 2, 2015, 4:05pm UTC](https://discuss.elastic.co/t/elastic-search-with-couchdb-river-plugin-cant-find-any-documents/12263/9 "2015-02-02T16:05:31Z")

</div>

Anything in logs?

--  
David Pilato | Technical Advocate | [Elasticsearch.com](http://Elasticsearch.com)  
@dadoonet [https://twitter.com/dadoonet](https://twitter.com/dadoonet) | @elasticsearchfr [https://twitter.com/elasticsearchfr](https://twitter.com/elasticsearchfr) | @scrutmydocs [https://twitter.com/scrutmydocs](https://twitter.com/scrutmydocs)

> Le 2 févr. 2015 à 17:04, Bao-Quan Ho [ho.baoquan@gmail.com](mailto:ho.baoquan@gmail.com) a écrit :
> 
> Hello I tried as suggested but I get the same outcome:
> 
> # curl localhost:9200/testdb/\_search?pretty=1
> 
> {  
> "took" : 1,  
> "timed\_out" : false,  
> "\_shards" : {  
> "total" : 5,  
> "successful" : 5,  
> "failed" : 0  
> },  
> "hits" : {  
> "total" : 0,  
> "max\_score" : null,  
> "hits" :   
> }  
> }
> 
> On Mon, Feb 2, 2015 at 6:35 AM, David Pilato \<[david@pilato.fr](mailto:david@pilato.fr) [mailto:david@pilato.fr](mailto:david@pilato.fr)\> wrote:  
> Try with:
> 
> localhost:9200/testdb/\_search
> 
> I think you are using the default type name here which is not IIRC the river name.
> 
> ## HTH
> 
> David 😉  
> Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs
> 
> Le 2 févr. 2015 à 11:43, Bao-Quan Ho \<[ho.baoquan@gmail.com](mailto:ho.baoquan@gmail.com) [mailto:ho.baoquan@gmail.com](mailto:ho.baoquan@gmail.com)\> a écrit :
> 
> > David,
> > 
> > Sorry for the old post revival, but I'm getting this same error with no hits with Couchdb rivers (2.4.1), Elasticsearch (1.4.2), and Couchdb (1.6.1). I am fairly new to using couch-rivers but I've installed all the applications and they are running on Centos 7. Can you please see if you notice anything wrong? I've looked everywhere but can not find a solution. Thank you in advance
> > 
> > I added some dummy data into my couchdb database "testdb":
> > 
> > # curl -XGET localhost:5984/testdb/\_changes
> > 
> > {"results":[  
> > {"seq":1,"id":"1","changes":[{"rev":"1-0291....."}]},  
> > {"seq":2,"id":"2","changes":[{"rev":"1-1945....."}]},  
> > {"seq":3,"id":"3","changes":[{"rev":"1-62a5....."}]},  
> > {"seq":4,"id":"4","changes":[{"rev":"1-7e93....."}]},  
> > ],  
> > "last\_seq":4}
> > 
> > I run this to make the index:
> > 
> > # curl -X PUT '[http://localhost:9200/\_river/testdb/\_meta](http://localhost:9200/_river/testdb/_meta)' [http://localhost:9200/\_river/testdb/\_meta'](http://localhost:9200/_river/testdb/_meta') -d '{ "type" : "couchdb", "couchdb" : { "host" : "localhost", "port" : 5984, "db" : "testdb", "filter" : null }"'
> > 
> > Get a return of:
> > 
> > # {"index":"\_river","\_type":"testdb","\_id":"\_meta","\_version":1,"created":true"}
> > 
> > When I try to do the query:
> > 
> > # curl localhost:9200/testdb/testdb/\_search?pretty=1
> > 
> > {  
> > "took" : 1,  
> > "timed\_out" : false,  
> > "\_shards" : {  
> > "total" : 5,  
> > "successful" : 5,  
> > "failed" : 0  
> > },  
> > "hits" : {  
> > "total" : 0,  
> > "max\_score" : null,  
> > "hits" :   
> > }  
> > }
> > 
> > When I use the
> > 
> > # curl [http://localhost:9200/\_search?q=\*&pretty=true](http://localhost:9200/_search?q=*&pretty=true) [http://localhost:9200/\_search?q=\*&pretty=true](http://localhost:9200/_search?q=*&pretty=true)
> > 
> > {  
> > "took" : 2,  
> > "timed\_out" : false,  
> > "\_shards" : {  
> > "total" : 16,  
> > "successful" : 16,  
> > "failed" : 0  
> > },  
> > "hits" : {  
> > "total" : 1,  
> > "max\_score" : 1.0,  
> > "hits" : [ {  
> > "\_index" : "\_river",  
> > "\_type" : "testdb",  
> > "\_id" : "\_meta",  
> > "\_score" : "1.0",  
> > "\_source" : {"type" "couchdb", "couchdb" : {"host" : "localhost", "port": "5984", "db" : "testdb", "filter" : null}}  
> > } ]  
> > }  
> > }
> > 
> > On Wednesday, June 5, 2013 at 1:59:04 AM UTC-4, David Pilato wrote:  
> > Just to double check, could you run:  
> > [http://localhost:9200/\_search?q=\*&pretty=true](http://localhost:9200/_search?q=*&pretty=true) [http://localhost:9200/my\_db/\_search?q=\*&pretty=true](http://localhost:9200/my_db/_search?q=*&pretty=true)
> > 
> > --  
> > David 😉  
> > Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs
> > 
> > Le 5 juin 2013 à 00:19, Yannis Psarras \<[yannis....@gmail.com](mailto:yannis....@gmail.com) \<\>\> a écrit :
> > 
> > And with the q=\* I get the same really as above
> > 
> > (for query: [http://localhost:9200/my\_db/\_search?q=\*&pretty=true](http://localhost:9200/my_db/_search?q=*&pretty=true) [http://localhost:9200/my\_db/\_search?q=\*&pretty=true](http://localhost:9200/my_db/_search?q=*&pretty=true))
> > 
> > On Wed, Jun 5, 2013 at 1:17 AM, Yannis Psarras \<[yannis....@gmail.com](mailto:yannis....@gmail.com) \<\>\> wrote:  
> > I get the following:
> > 
> > curl -XGET "[http://localhost:9200/my\_db/\_search?pretty=true](http://localhost:9200/my_db/_search?pretty=true) [http://localhost:9200/my\_db/my\_db/\_search?pretty=true](http://localhost:9200/my_db/my_db/_search?pretty=true)"  
> > {  
> > "took" : 2,  
> > "timed\_out" : false,  
> > "\_shards" : {  
> > "total" : 5,  
> > "successful" : 5,  
> > "failed" : 0  
> > },  
> > "hits" : {  
> > "total" : 0,  
> > "max\_score" : null,  
> > "hits" :   
> > }  
> > }
> > 
> > On Wed, Jun 5, 2013 at 12:53 AM, David Pilato \<[da...@pilato.fr](mailto:da...@pilato.fr) \<\>\> wrote:  
> > Not sure that default type is dbname.  
> > What do you get with:  
> > curl -XGET "[http://localhost:9200/my\_db/\_search?q=\*&pretty=true](http://localhost:9200/my_db/_search?q=*&pretty=true) [http://localhost:9200/my\_db/\_search?q=\*&pretty=true](http://localhost:9200/my_db/_search?q=*&pretty=true)"  
> > ?
> > 
> > --  
> > David 😉  
> > Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs
> > 
> > Le 4 juin 2013 à 23:26, Yannis Psarras \<[yannis....@gmail.com](mailto:yannis....@gmail.com) \<\>\> a écrit :
> > 
> > I recently started using Elasticsearch and couchdb and I have the following problem. I have a couch database with a bunch of documents. I add a couch db river index on Elasticsearch and I expect to have those documents indexed and searchable. But when I search for anything through ES I dont get any results. The command flow is as follows:
> > 
> > The command above verifies that there are 4 documents in the couch db instance
> > 
> > curl -H "Content-Type: application/json" -X GET [http://localhost:5984/my\_db](http://localhost:5984/my_db) [http://localhost:5984/my\_db](http://localhost:5984/my_db)
> > 
> > {"db\_name":"my\_db","doc\_count":4,"doc\_del\_count":0,"update\_seq":4,"purge\_seq":0,"compact\_running":false,"disk\_size":16482,"data\_size":646,"instance\_start\_time":"1370204643908592","disk\_format\_version":6,"committed\_update\_seq":4}  
> > The \_changes output:
> > 
> > curl -H "Content-Type: application/json" -X GET [http://localhost:5984/my\_db/\_changes](http://localhost:5984/my_db/_changes) [http://localhost:5984/my\_db/\_changes](http://localhost:5984/my_db/_changes)  
> > {"results":[  
> > {"seq":1,"id":"1","changes":[{"rev":"1-40d928a959dd52d183ab7c413fabca92"}]},  
> > {"seq":2,"id":"2","changes":[{"rev":"1-42212757a56b240f5205266b1969e890"}]},  
> > {"seq":3,"id":"3","changes":[{"rev":"1-f59c2ae7acacb68d9414be05d56ed33a"}]},  
> > {"seq":4,"id":"4","changes":[{"rev":"1-e86cf1c287c16906e81d901365b9bf98"}]}  
> > ],  
> > "last\_seq":4}  
> > Now, below I m creating my index in ES.
> > 
> > curl -XPUT '[http://localhost:9200/\_river/my\_db/\_meta](http://localhost:9200/_river/my_db/_meta)' [http://localhost:9200/\_river/my\_db/\_meta'](http://localhost:9200/_river/my_db/_meta') -d '{ "type" : "couchdb", "couchdb" : { "host" : "localhost", "port" : 5984, "db" : "my\_db", "filter" : null } }'
> > 
> > {"ok":true,"\_index":"\_river","\_type":"my\_db","\_id":"\_meta","\_version":1}  
> > But I dont get anything back.
> > 
> > curl -XGET "[http://localhost:9200/my\_db/my\_db/\_search?pretty=true](http://localhost:9200/my_db/my_db/_search?pretty=true) [http://localhost:9200/my\_db/my\_db/\_search?pretty=true](http://localhost:9200/my_db/my_db/_search?pretty=true)"  
> > {  
> > "took" : 2,  
> > "timed\_out" : false,  
> > "\_shards" : {  
> > "total" : 5,  
> > "successful" : 5,  
> > "failed" : 0  
> > },  
> > "hits" : {  
> > "total" : 0,  
> > "max\_score" : null,  
> > "hits" :   
> > }  
> > }  
> > Is there anything I m missing?
> > 
> > Thanks, Yannis
> > 
> > --  
> > You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
> > To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com) \<\>.
> > 
> > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out) [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> > 
> > --  
> > You received this message because you are subscribed to a topic in the Google Groups "elasticsearch" group.  
> > To unsubscribe from this topic, visit [https://groups.google.com/d/topic/elasticsearch/FUJj2c4ycnc/unsubscribe?hl=en-US](https://groups.google.com/d/topic/elasticsearch/FUJj2c4ycnc/unsubscribe?hl=en-US) [https://groups.google.com/d/topic/elasticsearch/FUJj2c4ycnc/unsubscribe?hl=en-US](https://groups.google.com/d/topic/elasticsearch/FUJj2c4ycnc/unsubscribe?hl=en-US).  
> > To unsubscribe from this group and all its topics, send an email to [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com) \<\>.  
> > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out) [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> > 
> > --  
> > You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
> > To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com) \<\>.  
> > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out) [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> > 
> > --  
> > You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
> > To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com) [mailto:elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/acdd73d6-e67a-4246-9dd5-75e99c6ffc31%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/acdd73d6-e67a-4246-9dd5-75e99c6ffc31%40googlegroups.com) [https://groups.google.com/d/msgid/elasticsearch/acdd73d6-e67a-4246-9dd5-75e99c6ffc31%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/acdd73d6-e67a-4246-9dd5-75e99c6ffc31%40googlegroups.com?utm_medium=email&utm_source=footer).  
> > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout) [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> 
> --  
> You received this message because you are subscribed to a topic in the Google Groups "elasticsearch" group.  
> To unsubscribe from this topic, visit [https://groups.google.com/d/topic/elasticsearch/FUJj2c4ycnc/unsubscribe](https://groups.google.com/d/topic/elasticsearch/FUJj2c4ycnc/unsubscribe) [https://groups.google.com/d/topic/elasticsearch/FUJj2c4ycnc/unsubscribe](https://groups.google.com/d/topic/elasticsearch/FUJj2c4ycnc/unsubscribe).  
> To unsubscribe from this group and all its topics, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com) [mailto:elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/F820A4DF-BC87-4C49-B3E2-2F8BC9ABDAD6%40pilato.fr](https://groups.google.com/d/msgid/elasticsearch/F820A4DF-BC87-4C49-B3E2-2F8BC9ABDAD6%40pilato.fr) [https://groups.google.com/d/msgid/elasticsearch/F820A4DF-BC87-4C49-B3E2-2F8BC9ABDAD6%40pilato.fr?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/F820A4DF-BC87-4C49-B3E2-2F8BC9ABDAD6%40pilato.fr?utm_medium=email&utm_source=footer).
> 
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout) [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> 
> --  
> You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com) [mailto:elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CABs-q54f5D--\_CERLBoCEf7jH6M73HxnL78OkzQsu%3DZ\_S65ouA%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CABs-q54f5D--_CERLBoCEf7jH6M73HxnL78OkzQsu%3DZ_S65ouA%40mail.gmail.com) [https://groups.google.com/d/msgid/elasticsearch/CABs-q54f5D--\_CERLBoCEf7jH6M73HxnL78OkzQsu%3DZ\_S65ouA%40mail.gmail.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/CABs-q54f5D--_CERLBoCEf7jH6M73HxnL78OkzQsu%3DZ_S65ouA%40mail.gmail.com?utm_medium=email&utm_source=footer).  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout) [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/45CACB8D-75EA-4FD0-BD73-6CDA32488EFE%40pilato.fr](https://groups.google.com/d/msgid/elasticsearch/45CACB8D-75EA-4FD0-BD73-6CDA32488EFE%40pilato.fr).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Bao\_Quan\_Ho](https://avatars.discourse-cdn.com/v4/letter/b/8baadc/32.png) [@Bao\_Quan\_Ho](https://discuss.elastic.co/u/Bao_Quan_Ho)\
**Post date:** [February 2, 2015, 4:06pm UTC](https://discuss.elastic.co/t/elastic-search-with-couchdb-river-plugin-cant-find-any-documents/12263/10 "2015-02-02T16:06:26Z")

</div>

Hello I tried as suggested but I get the same outcome:

# curl localhost:9200/testdb/\_search?pretty=1

{  
"took" : 1,  
"timed\_out" : false,  
"\_shards" : {  
"total" : 5,  
"successful" : 5,  
"failed" : 0  
},  
"hits" : {  
"total" : 0,  
"max\_score" : null,  
"hits" :   
}  
}

On Monday, February 2, 2015 at 6:35:59 AM UTC-5, David Pilato wrote:

> Try with:
> 
> localhost:9200/testdb/\_search
> 
> I think you are using the default type name here which is not IIRC the  
> river name.
> 
> ## HTH
> 
> David 😉  
> Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs
> 
> Le 2 févr. 2015 à 11:43, Bao-Quan Ho \<[ho.ba...@gmail.com](mailto:ho.ba...@gmail.com) \<javascript:\>\> a  
> écrit :
> 
> David,
> 
> Sorry for the old post revival, but I'm getting this same error with no  
> hits with Couchdb rivers (2.4.1), Elasticsearch (1.4.2), and Couchdb  
> (1.6.1). I am fairly new to using couch-rivers but I've installed all the  
> applications and they are running on Centos 7. Can you please see if you  
> notice anything wrong? I've looked everywhere but can not find a solution.  
> Thank you in advance
> 
> I added some dummy data into my couchdb database "testdb":
> 
> # curl -XGET localhost:5984/testdb/\_changes
> 
> {"results":[  
> {"seq":1,"id":"1","changes":[{"rev":"1-0291....."}]},  
> {"seq":2,"id":"2","changes":[{"rev":"1-1945....."}]},  
> {"seq":3,"id":"3","changes":[{"rev":"1-62a5....."}]},  
> {"seq":4,"id":"4","changes":[{"rev":"1-7e93....."}]},  
> ],  
> "last\_seq":4}
> 
> I run this to make the index:
> 
> # curl -X PUT '[http://localhost:9200/\_river/testdb/\_meta](http://localhost:9200/_river/testdb/_meta)' -d '{ "type" :
> 
> "couchdb", "couchdb" : { "host" : "localhost", "port" : 5984, "db" :  
> "testdb", "filter" : null }"'
> 
> Get a return of:
> 
> # 
> 
> {"index":"\_river","\_type":"testdb","\_id":"\_meta","\_version":1,"created":true"}
> 
> When I try to do the query:
> 
> # curl localhost:9200/testdb/testdb/\_search?pretty=1
> 
> {  
> "took" : 1,  
> "timed\_out" : false,  
> "\_shards" : {  
> "total" : 5,  
> "successful" : 5,  
> "failed" : 0  
> },  
> "hits" : {  
> "total" : 0,  
> "max\_score" : null,  
> "hits" :   
> }  
> }
> 
> When I use the
> 
> # curl [http://localhost:9200/\_search?q=\*&pretty=true](http://localhost:9200/_search?q=*&pretty=true)
> 
> {  
> "took" : 2,  
> "timed\_out" : false,  
> "\_shards" : {  
> "total" : 16,  
> "successful" : 16,  
> "failed" : 0  
> },  
> "hits" : {  
> "total" : 1,  
> "max\_score" : 1.0,  
> "hits" : [ {  
> "\_index" : "\_river",  
> "\_type" : "testdb",  
> "\_id" : "\_meta",  
> "\_score" : "1.0",  
> "\_source" : {"type" "couchdb", "couchdb" : {"host" : "localhost",  
> "port": "5984", "db" : "testdb", "filter" : null}}  
> } ]  
> }  
> }
> 
> On Wednesday, June 5, 2013 at 1:59:04 AM UTC-4, David Pilato wrote:
> 
> > Just to double check, could you run:  
> > [http://localhost:9200/\_search?q=\*&pretty=true](http://localhost:9200/_search?q=*&pretty=true)  
> > [http://localhost:9200/my\_db/\_search?q=\*&pretty=true](http://localhost:9200/my_db/_search?q=*&pretty=true)
> > 
> > --  
> > David 😉  
> > Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs
> > 
> > Le 5 juin 2013 à 00:19, Yannis Psarras [yannis....@gmail.com](mailto:yannis....@gmail.com) a écrit :
> > 
> > And with the q=\* I get the same really as above
> > 
> > (for query: [http://localhost:9200/my\_db/\_search?q=\*&pretty=true](http://localhost:9200/my_db/_search?q=*&pretty=true))
> > 
> > On Wed, Jun 5, 2013 at 1:17 AM, Yannis Psarras [yannis....@gmail.com](mailto:yannis....@gmail.com)  
> > wrote:
> > 
> > > I get the following:
> > > 
> > > curl -XGET "[http://localhost:9200/my\_db/\_search?pretty=true](http://localhost:9200/my_db/_search?pretty=true) [http://localhost:9200/my\_db/my\_db/\_search?pretty=true](http://localhost:9200/my_db/my_db/_search?pretty=true)"  
> > > {  
> > > "took" : 2,  
> > > "timed\_out" : false,  
> > > "\_shards" : {  
> > > "total" : 5,  
> > > "successful" : 5,  
> > > "failed" : 0  
> > > },  
> > > "hits" : {  
> > > "total" : 0,  
> > > "max\_score" : null,  
> > > "hits" :   
> > > }  
> > > }
> > > 
> > > On Wed, Jun 5, 2013 at 12:53 AM, David Pilato [da...@pilato.fr](mailto:da...@pilato.fr) wrote:
> > > 
> > > > Not sure that default type is dbname.  
> > > > What do you get with:
> > > > 
> > > > curl -XGET "[http://localhost:9200/my\_db/\_search?q=\*&pretty=true](http://localhost:9200/my_db/_search?q=*&pretty=true)"
> > > > 
> > > > ?
> > > > 
> > > > --  
> > > > David 😉  
> > > > Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs
> > > > 
> > > > Le 4 juin 2013 à 23:26, Yannis Psarras [yannis....@gmail.com](mailto:yannis....@gmail.com) a écrit :
> > > > 
> > > > I recently started using Elasticsearch and couchdb and I have the  
> > > > following problem. I have a couch database with a bunch of documents. I add  
> > > > a couch db river index on Elasticsearch and I expect to have those  
> > > > documents indexed and searchable. But when I search for anything through ES  
> > > > I dont get any results. The command flow is as follows:
> > > > 
> > > > The command above verifies that there are 4 documents in the couch db  
> > > > instance
> > > > 
> > > > curl -H "Content-Type: application/json" -X GET [http://localhost:5984/my\_db](http://localhost:5984/my_db)
> > > > 
> > > > {"db\_name":"my\_db","doc\_count":4,"doc\_del\_count":0,"update\_seq":4,"purge\_seq":0,"compact\_running":false,"disk\_size":16482,"data\_size":646,"instance\_start\_time":"1370204643908592","disk\_format\_version":6,"committed\_update\_seq":4}
> > > > 
> > > > The \_changes output:
> > > > 
> > > > curl -H "Content-Type: application/json" -X GET [http://localhost:5984/my\_db/\_changes](http://localhost:5984/my_db/_changes)  
> > > > {"results":[  
> > > > {"seq":1,"id":"1","changes":[{"rev":"1-40d928a959dd52d183ab7c413fabca92"}]},  
> > > > {"seq":2,"id":"2","changes":[{"rev":"1-42212757a56b240f5205266b1969e890"}]},  
> > > > {"seq":3,"id":"3","changes":[{"rev":"1-f59c2ae7acacb68d9414be05d56ed33a"}]},  
> > > > {"seq":4,"id":"4","changes":[{"rev":"1-e86cf1c287c16906e81d901365b9bf98"}]}  
> > > > ],  
> > > > "last\_seq":4}
> > > > 
> > > > Now, below I m creating my index in ES.
> > > > 
> > > > curl -XPUT '[http://localhost:9200/\_river/my\_db/\_meta](http://localhost:9200/_river/my_db/_meta)' -d '{ "type" : "couchdb", "couchdb" : { "host" : "localhost", "port" : 5984, "db" : "my\_db", "filter" : null } }'
> > > > 
> > > > {"ok":true,"\_index":"\_river","\_type":"my\_db","\_id":"\_meta","\_version":1}
> > > > 
> > > > But I dont get anything back.
> > > > 
> > > > curl -XGET "[http://localhost:9200/my\_db/my\_db/\_search?pretty=true](http://localhost:9200/my_db/my_db/_search?pretty=true)"  
> > > > {  
> > > > "took" : 2,  
> > > > "timed\_out" : false,  
> > > > "\_shards" : {  
> > > > "total" : 5,  
> > > > "successful" : 5,  
> > > > "failed" : 0  
> > > > },  
> > > > "hits" : {  
> > > > "total" : 0,  
> > > > "max\_score" : null,  
> > > > "hits" :   
> > > > }  
> > > > }
> > > > 
> > > > Is there anything I m missing?
> > > > 
> > > > Thanks, Yannis
> > > > 
> > > > --  
> > > > You received this message because you are subscribed to the Google  
> > > > Groups "elasticsearch" group.  
> > > > To unsubscribe from this group and stop receiving emails from it, send  
> > > > an email to [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com).
> > > > 
> > > > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> > > > 
> > > > --  
> > > > You received this message because you are subscribed to a topic in the  
> > > > Google Groups "elasticsearch" group.  
> > > > To unsubscribe from this topic, visit  
> > > > [https://groups.google.com/d/topic/elasticsearch/FUJj2c4ycnc/unsubscribe?hl=en-US](https://groups.google.com/d/topic/elasticsearch/FUJj2c4ycnc/unsubscribe?hl=en-US)  
> > > > .  
> > > > To unsubscribe from this group and all its topics, send an email to  
> > > > [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com).  
> > > > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> > 
> > --  
> > You received this message because you are subscribed to the Google Groups  
> > "elasticsearch" group.  
> > To unsubscribe from this group and stop receiving emails from it, send an  
> > email to [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com).  
> > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> 
> --  
> You received this message because you are subscribed to the Google Groups  
> "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an  
> email to [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com) \<javascript:\>.  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/acdd73d6-e67a-4246-9dd5-75e99c6ffc31%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/acdd73d6-e67a-4246-9dd5-75e99c6ffc31%40googlegroups.com)  
> [https://groups.google.com/d/msgid/elasticsearch/acdd73d6-e67a-4246-9dd5-75e99c6ffc31%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/acdd73d6-e67a-4246-9dd5-75e99c6ffc31%40googlegroups.com?utm_medium=email&utm_source=footer)  
> .  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/fe2fb07a-3d72-4189-88fe-0beb50ebe76a%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/fe2fb07a-3d72-4189-88fe-0beb50ebe76a%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Bao\_Quan\_Ho](https://avatars.discourse-cdn.com/v4/letter/b/8baadc/32.png) [@Bao\_Quan\_Ho](https://discuss.elastic.co/u/Bao_Quan_Ho)\
**Post date:** [February 2, 2015, 4:20pm UTC](https://discuss.elastic.co/t/elastic-search-with-couchdb-river-plugin-cant-find-any-documents/12263/11 "2015-02-02T16:20:10Z")

</div>

looking in /vars/log/elasticsearch/elasticsearch.log  
[2015-02-02 10:42:31,415][INFO][river.couchdb][Matt Murdock][couchdb][  
testdb] starting couchdb stream: host [localhost], port [5984], filter [null  
], db [testdb], indexing to [testdb]/[testdb]

On Monday, February 2, 2015 at 11:05:53 AM UTC-5, David Pilato wrote:

> Anything in logs?
> 
> --  
> _David Pilato_ | _Technical Advocate_ | _[Elasticsearch.com](http://Elasticsearch.com)  
> [http://Elasticsearch.com](http://Elasticsearch.com)_  
> @dadoonet [https://twitter.com/dadoonet](https://twitter.com/dadoonet) | @elasticsearchfr  
> [https://twitter.com/elasticsearchfr](https://twitter.com/elasticsearchfr) | @scrutmydocs  
> [https://twitter.com/scrutmydocs](https://twitter.com/scrutmydocs)
> 
> Le 2 févr. 2015 à 17:04, Bao-Quan Ho \<[ho.ba...@gmail.com](mailto:ho.ba...@gmail.com) \<javascript:\>\> a  
> écrit :
> 
> Hello I tried as suggested but I get the same outcome:
> 
> # curl localhost:9200/testdb/\_search?pretty=1
> 
> {  
> "took" : 1,  
> "timed\_out" : false,  
> "\_shards" : {  
> "total" : 5,  
> "successful" : 5,  
> "failed" : 0  
> },  
> "hits" : {  
> "total" : 0,  
> "max\_score" : null,  
> "hits" :   
> }  
> }
> 
> On Mon, Feb 2, 2015 at 6:35 AM, David Pilato \<[da...@pilato.fr](mailto:da...@pilato.fr)  
> \<javascript:\>\> wrote:
> 
> Try with:
> 
> localhost:9200/testdb/\_search
> 
> I think you are using the default type name here which is not IIRC the  
> river name.
> 
> ## HTH
> 
> David 😉  
> Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs
> 
> Le 2 févr. 2015 à 11:43, Bao-Quan Ho \<[ho.ba...@gmail.com](mailto:ho.ba...@gmail.com) \<javascript:\>\> a  
> écrit :
> 
> David,
> 
> Sorry for the old post revival, but I'm getting this same error with no  
> hits with Couchdb rivers (2.4.1), Elasticsearch (1.4.2), and Couchdb  
> (1.6.1). I am fairly new to using couch-rivers but I've installed all the  
> applications and they are running on Centos 7. Can you please see if you  
> notice anything wrong? I've looked everywhere but can not find a  
> solution. Thank you in advance
> 
> I added some dummy data into my couchdb database "testdb":
> 
> # curl -XGET localhost:5984/testdb/\_changes
> 
> {"results":[  
> {"seq":1,"id":"1","changes":[{"rev":"1-0291....."}]},  
> {"seq":2,"id":"2","changes":[{"rev":"1-1945....."}]},  
> {"seq":3,"id":"3","changes":[{"rev":"1-62a5....."}]},  
> {"seq":4,"id":"4","changes":[{"rev":"1-7e93....."}]},  
> ],  
> "last\_seq":4}
> 
> I run this to make the index:
> 
> # curl -X PUT '[http://localhost:9200/\_river/testdb/\_meta](http://localhost:9200/_river/testdb/_meta)' -d '{ "type" :
> 
> "couchdb", "couchdb" : { "host" : "localhost", "port" : 5984, "db" :  
> "testdb", "filter" : null }"'
> 
> Get a return of:
> 
> # 
> 
> {"index":"\_river","\_type":"testdb","\_id":"\_meta","\_version":1,"created":true"}
> 
> When I try to do the query:
> 
> # curl localhost:9200/testdb/testdb/\_search?pretty=1
> 
> {  
> "took" : 1,  
> "timed\_out" : false,  
> "\_shards" : {  
> "total" : 5,  
> "successful" : 5,  
> "failed" : 0  
> },  
> "hits" : {  
> "total" : 0,  
> "max\_score" : null,  
> "hits" :   
> }  
> }
> 
> When I use the
> 
> # curl [http://localhost:9200/\_search?q=\*&pretty=true](http://localhost:9200/_search?q=*&pretty=true)
> 
> {  
> "took" : 2,  
> "timed\_out" : false,  
> "\_shards" : {  
> "total" : 16,  
> "successful" : 16,  
> "failed" : 0  
> },  
> "hits" : {  
> "total" : 1,  
> "max\_score" : 1.0,  
> "hits" : [ {  
> "\_index" : "\_river",  
> "\_type" : "testdb",  
> "\_id" : "\_meta",  
> "\_score" : "1.0",  
> "\_source" : {"type" "couchdb", "couchdb" : {"host" : "localhost",  
> "port": "5984", "db" : "testdb", "filter" : null}}  
> } ]  
> }  
> }
> 
> On Wednesday, June 5, 2013 at 1:59:04 AM UTC-4, David Pilato wrote:
> 
> Just to double check, could you run:  
> [http://localhost:9200/\_search?q=\*&pretty=true](http://localhost:9200/_search?q=*&pretty=true)  
> [http://localhost:9200/my\_db/\_search?q=\*&pretty=true](http://localhost:9200/my_db/_search?q=*&pretty=true)
> 
> --  
> David 😉  
> Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs
> 
> Le 5 juin 2013 à 00:19, Yannis Psarras [yannis....@gmail.com](mailto:yannis....@gmail.com) a écrit :
> 
> And with the q=\* I get the same really as above
> 
> (for query: [http://localhost:9200/my\_db/\_search?q=\*&pretty=true](http://localhost:9200/my_db/_search?q=*&pretty=true))
> 
> On Wed, Jun 5, 2013 at 1:17 AM, Yannis Psarras [yannis....@gmail.com](mailto:yannis....@gmail.com)  
> wrote:
> 
> I get the following:
> 
> curl -XGET "[http://localhost:9200/my\_db/\_search?pretty=true](http://localhost:9200/my_db/_search?pretty=true) [http://localhost:9200/my\_db/my\_db/\_search?pretty=true](http://localhost:9200/my_db/my_db/_search?pretty=true)"  
> {  
> "took" : 2,  
> "timed\_out" : false,  
> "\_shards" : {  
> "total" : 5,  
> "successful" : 5,  
> "failed" : 0  
> },  
> "hits" : {  
> "total" : 0,  
> "max\_score" : null,  
> "hits" :   
> }  
> }
> 
> On Wed, Jun 5, 2013 at 12:53 AM, David Pilato [da...@pilato.fr](mailto:da...@pilato.fr) wrote:
> 
> Not sure that default type is dbname.  
> What do you get with:
> 
> curl -XGET "[http://localhost:9200/my\_db/\_search?q=\*&pretty=true](http://localhost:9200/my_db/_search?q=*&pretty=true)"
> 
> ?
> 
> --  
> David 😉  
> Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs
> 
> Le 4 juin 2013 à 23:26, Yannis Psarras [yannis....@gmail.com](mailto:yannis....@gmail.com) a écrit :
> 
> I recently started using Elasticsearch and couchdb and I have the  
> following problem. I have a couch database with a bunch of documents. I add  
> a couch db river index on Elasticsearch and I expect to have those  
> documents indexed and searchable. But when I search for anything through ES  
> I dont get any results. The command flow is as follows:
> 
> The command above verifies that there are 4 documents in the couch db  
> instance
> 
> curl -H "Content-Type: application/json" -X GET [http://localhost:5984/my\_db](http://localhost:5984/my_db)
> 
> {"db\_name":"my\_db","doc\_count":4,"doc\_del\_count":0,"update\_seq":4,"purge\_seq":0,"compact\_running":false,"disk\_size":16482,"data\_size":646,"instance\_start\_time":"1370204643908592","disk\_format\_version":6,"committed\_update\_seq":4}
> 
> The \_changes output:
> 
> curl -H "Content-Type: application/json" -X GET [http://localhost:5984/my\_db/\_changes](http://localhost:5984/my_db/_changes)  
> {"results":[  
> {"seq":1,"id":"1","changes":[{"rev":"1-40d928a959dd52d183ab7c413fabca92"}]},  
> {"seq":2,"id":"2","changes":[{"rev":"1-42212757a56b240f5205266b1969e890"}]},  
> {"seq":3,"id":"3","changes":[{"rev":"1-f59c2ae7acacb68d9414be05d56ed33a"}]},  
> {"seq":4,"id":"4","changes":[{"rev":"1-e86cf1c287c16906e81d901365b9bf98"}]}  
> ],  
> "last\_seq":4}
> 
> Now, below I m creating my index in ES.
> 
> curl -XPUT '[http://localhost:9200/\_river/my\_db/\_meta](http://localhost:9200/_river/my_db/_meta)' -d '{ "type" : "couchdb", "couchdb" : { "host" : "localhost", "port" : 5984, "db" : "my\_db", "filter" : null } }'
> 
> {"ok":true,"\_index":"\_river","\_type":"my\_db","\_id":"\_meta","\_version":1}
> 
> But I dont get anything back.
> 
> curl -XGET "[http://localhost:9200/my\_db/my\_db/\_search?pretty=true](http://localhost:9200/my_db/my_db/_search?pretty=true)"  
> {  
> "took" : 2,  
> "timed\_out" : false,  
> "\_shards" : {  
> "total" : 5,  
> "successful" : 5,  
> "failed" : 0  
> },  
> "hits" : {  
> "total" : 0,  
> "max\_score" : null,  
> "hits" :   
> }  
> }
> 
> Is there anything I m missing?
> 
> Thanks, Yannis
> 
> --  
> You received this message because you are subscribed to the Google Groups  
> "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an  
> email to [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com).
> 
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> 
> --  
> You received this message because you are subscribed to a topic in the  
> Google Groups "elasticsearch" group.  
> To unsubscribe from this topic, visit [https://groups.google.com/d/](https://groups.google.com/d/)  
> topic/elasticsearch/FUJj2c4ycnc/unsubscribe?hl=en-US.  
> To unsubscribe from this group and all its topics, send an email to  
> [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com).  
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> 
> --  
> You received this message because you are subscribed to the Google Groups  
> "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an  
> email to [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com).  
> For more options, visit
> 
> ...

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/18309d8a-9476-4d31-a79b-d44f79d79b38%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/18309d8a-9476-4d31-a79b-d44f79d79b38%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [February 2, 2015, 4:54pm UTC](https://discuss.elastic.co/t/elastic-search-with-couchdb-river-plugin-cant-find-any-documents/12263/12 "2015-02-02T16:54:29Z")

</div>

So you should try to change logs to DEBUG or TRACE and see what it tells.

--  
David Pilato | Technical Advocate | [Elasticsearch.com](http://Elasticsearch.com)  
@dadoonet [https://twitter.com/dadoonet](https://twitter.com/dadoonet) | @elasticsearchfr [https://twitter.com/elasticsearchfr](https://twitter.com/elasticsearchfr) | @scrutmydocs [https://twitter.com/scrutmydocs](https://twitter.com/scrutmydocs)

> Le 2 févr. 2015 à 17:20, Bao-Quan Ho [ho.baoquan@gmail.com](mailto:ho.baoquan@gmail.com) a écrit :
> 
> looking in /vars/log/elasticsearch/elasticsearch.log  
> [2015-02-02 10:42:31,415][INFO][river.couchdb][Matt Murdock][couchdb][testdb] starting couchdb stream: host [localhost], port [5984], filter [null], db [testdb], indexing to [testdb]/[testdb]
> 
> On Monday, February 2, 2015 at 11:05:53 AM UTC-5, David Pilato wrote:  
> Anything in logs?
> 
> --  
> David Pilato | Technical Advocate | [Elasticsearch.com](http://Elasticsearch.com) [http://elasticsearch.com/](http://elasticsearch.com/)  
> @dadoonet [https://twitter.com/dadoonet](https://twitter.com/dadoonet) | @elasticsearchfr [https://twitter.com/elasticsearchfr](https://twitter.com/elasticsearchfr) | @scrutmydocs [https://twitter.com/scrutmydocs](https://twitter.com/scrutmydocs)
> 
> Le 2 févr. 2015 à 17:04, Bao-Quan Ho \<[ho.ba...@gmail.com](mailto:ho.ba...@gmail.com) \<javascript:\>\> a écrit :
> 
> Hello I tried as suggested but I get the same outcome:
> 
> # curl localhost:9200/testdb/\_search?pretty=1
> 
> {  
> "took" : 1,  
> "timed\_out" : false,  
> "\_shards" : {  
> "total" : 5,  
> "successful" : 5,  
> "failed" : 0  
> },  
> "hits" : {  
> "total" : 0,  
> "max\_score" : null,  
> "hits" :   
> }  
> }
> 
> On Mon, Feb 2, 2015 at 6:35 AM, David Pilato \<[da...@pilato.fr](mailto:da...@pilato.fr) \<javascript:\>\> wrote:  
> Try with:
> 
> localhost:9200/testdb/\_search
> 
> I think you are using the default type name here which is not IIRC the river name.
> 
> ## HTH
> 
> David 😉  
> Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs
> 
> Le 2 févr. 2015 à 11:43, Bao-Quan Ho \<[ho.ba...@gmail.com](mailto:ho.ba...@gmail.com) \<javascript:\>\> a écrit :
> 
> David,
> 
> Sorry for the old post revival, but I'm getting this same error with no hits with Couchdb rivers (2.4.1), Elasticsearch (1.4.2), and Couchdb (1.6.1). I am fairly new to using couch-rivers but I've installed all the applications and they are running on Centos 7. Can you please see if you notice anything wrong? I've looked everywhere but can not find a solution. Thank you in advance
> 
> I added some dummy data into my couchdb database "testdb":
> 
> # curl -XGET localhost:5984/testdb/\_changes
> 
> {"results":[  
> {"seq":1,"id":"1","changes":[{"rev":"1-0291....."}]},  
> {"seq":2,"id":"2","changes":[{"rev":"1-1945....."}]},  
> {"seq":3,"id":"3","changes":[{"rev":"1-62a5....."}]},  
> {"seq":4,"id":"4","changes":[{"rev":"1-7e93....."}]},  
> ],  
> "last\_seq":4}
> 
> I run this to make the index:
> 
> # curl -X PUT '[http://localhost:9200/\_river/testdb/\_meta](http://localhost:9200/_river/testdb/_meta)' [http://localhost:9200/\_river/testdb/\_meta'](http://localhost:9200/_river/testdb/_meta') -d '{ "type" : "couchdb", "couchdb" : { "host" : "localhost", "port" : 5984, "db" : "testdb", "filter" : null }"'
> 
> Get a return of:
> 
> # {"index":"\_river","\_type":"testdb","\_id":"\_meta","\_version":1,"created":true"}
> 
> When I try to do the query:
> 
> # curl localhost:9200/testdb/testdb/\_search?pretty=1
> 
> {  
> "took" : 1,  
> "timed\_out" : false,  
> "\_shards" : {  
> "total" : 5,  
> "successful" : 5,  
> "failed" : 0  
> },  
> "hits" : {  
> "total" : 0,  
> "max\_score" : null,  
> "hits" :   
> }  
> }
> 
> When I use the
> 
> # curl [http://localhost:9200/\_search?q=\*&pretty=true](http://localhost:9200/_search?q=*&pretty=true) [http://localhost:9200/\_search?q=\*&pretty=true](http://localhost:9200/_search?q=*&pretty=true)
> 
> {  
> "took" : 2,  
> "timed\_out" : false,  
> "\_shards" : {  
> "total" : 16,  
> "successful" : 16,  
> "failed" : 0  
> },  
> "hits" : {  
> "total" : 1,  
> "max\_score" : 1.0,  
> "hits" : [ {  
> "\_index" : "\_river",  
> "\_type" : "testdb",  
> "\_id" : "\_meta",  
> "\_score" : "1.0",  
> "\_source" : {"type" "couchdb", "couchdb" : {"host" : "localhost", "port": "5984", "db" : "testdb", "filter" : null}}  
> } ]  
> }  
> }
> 
> On Wednesday, June 5, 2013 at 1:59:04 AM UTC-4, David Pilato wrote:  
> Just to double check, could you run:  
> [http://localhost:9200/\_search?q=\*&pretty=true](http://localhost:9200/_search?q=*&pretty=true) [http://localhost:9200/my\_db/\_search?q=\*&pretty=true](http://localhost:9200/my_db/_search?q=*&pretty=true)
> 
> --  
> David 😉  
> Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs
> 
> Le 5 juin 2013 à 00:19, Yannis Psarras \<[yannis....@gmail.com](mailto:yannis....@gmail.com) \<\>\> a écrit :
> 
> And with the q=\* I get the same really as above
> 
> (for query: [http://localhost:9200/my\_db/\_search?q=\*&pretty=true](http://localhost:9200/my_db/_search?q=*&pretty=true) [http://localhost:9200/my\_db/\_search?q=\*&pretty=true](http://localhost:9200/my_db/_search?q=*&pretty=true))
> 
> On Wed, Jun 5, 2013 at 1:17 AM, Yannis Psarras \<[yannis....@gmail.com](mailto:yannis....@gmail.com) \<\>\> wrote:  
> I get the following:
> 
> curl -XGET "[http://localhost:9200/my\_db/\_search?pretty=true](http://localhost:9200/my_db/_search?pretty=true) [http://localhost:9200/my\_db/my\_db/\_search?pretty=true](http://localhost:9200/my_db/my_db/_search?pretty=true)"  
> {  
> "took" : 2,  
> "timed\_out" : false,  
> "\_shards" : {  
> "total" : 5,  
> "successful" : 5,  
> "failed" : 0  
> },  
> "hits" : {  
> "total" : 0,  
> "max\_score" : null,  
> "hits" :   
> }  
> }
> 
> On Wed, Jun 5, 2013 at 12:53 AM, David Pilato \<[da...@pilato.fr](mailto:da...@pilato.fr) \<\>\> wrote:  
> Not sure that default type is dbname.  
> What do you get with:  
> curl -XGET "[http://localhost:9200/my\_db/\_search?q=\*&pretty=true](http://localhost:9200/my_db/_search?q=*&pretty=true) [http://localhost:9200/my\_db/\_search?q=\*&pretty=true](http://localhost:9200/my_db/_search?q=*&pretty=true)"  
> ?
> 
> --  
> David 😉  
> Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs
> 
> Le 4 juin 2013 à 23:26, Yannis Psarras \<[yannis....@gmail.com](mailto:yannis....@gmail.com) \<\>\> a écrit :
> 
> I recently started using Elasticsearch and couchdb and I have the following problem. I have a couch database with a bunch of documents. I add a couch db river index on Elasticsearch and I expect to have those documents indexed and searchable. But when I search for anything through ES I dont get any results. The command flow is as follows:
> 
> The command above verifies that there are 4 documents in the couch db instance
> 
> curl -H "Content-Type: application/json" -X GET [http://localhost:5984/my\_db](http://localhost:5984/my_db) [http://localhost:5984/my\_db](http://localhost:5984/my_db)
> 
> {"db\_name":"my\_db","doc\_count":4,"doc\_del\_count":0,"update\_seq":4,"purge\_seq":0,"compact\_running":false,"disk\_size":16482,"data\_size":646,"instance\_start\_time":"1370204643908592","disk\_format\_version":6,"committed\_update\_seq":4}  
> The \_changes output:
> 
> curl -H "Content-Type: application/json" -X GET [http://localhost:5984/my\_db/\_changes](http://localhost:5984/my_db/_changes) [http://localhost:5984/my\_db/\_changes](http://localhost:5984/my_db/_changes)  
> {"results":[  
> {"seq":1,"id":"1","changes":[{"rev":"1-40d928a959dd52d183ab7c413fabca92"}]},  
> {"seq":2,"id":"2","changes":[{"rev":"1-42212757a56b240f5205266b1969e890"}]},  
> {"seq":3,"id":"3","changes":[{"rev":"1-f59c2ae7acacb68d9414be05d56ed33a"}]},  
> {"seq":4,"id":"4","changes":[{"rev":"1-e86cf1c287c16906e81d901365b9bf98"}]}  
> ],  
> "last\_seq":4}  
> Now, below I m creating my index in ES.
> 
> curl -XPUT '[http://localhost:9200/\_river/my\_db/\_meta](http://localhost:9200/_river/my_db/_meta)' [http://localhost:9200/\_river/my\_db/\_meta'](http://localhost:9200/_river/my_db/_meta') -d '{ "type" : "couchdb", "couchdb" : { "host" : "localhost", "port" : 5984, "db" : "my\_db", "filter" : null } }'
> 
> {"ok":true,"\_index":"\_river","\_type":"my\_db","\_id":"\_meta","\_version":1}  
> But I dont get anything back.
> 
> curl -XGET "[http://localhost:9200/my\_db/my\_db/\_search?pretty=true](http://localhost:9200/my_db/my_db/_search?pretty=true) [http://localhost:9200/my\_db/my\_db/\_search?pretty=true](http://localhost:9200/my_db/my_db/_search?pretty=true)"  
> {  
> "took" : 2,  
> "timed\_out" : false,  
> "\_shards" : {  
> "total" : 5,  
> "successful" : 5,  
> "failed" : 0  
> },  
> "hits" : {  
> "total" : 0,  
> "max\_score" : null,  
> "hits" :   
> }  
> }  
> Is there anything I m missing?
> 
> Thanks, Yannis
> 
> --  
> You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com) \<\>.
> 
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out) [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> 
> --  
> You received this message because you are subscribed to a topic in the Google Groups "elasticsearch" group.  
> To unsubscribe from this topic, visit [https://groups.google.com/d/topic/elasticsearch/FUJj2c4ycnc/unsubscribe?hl=en-US](https://groups.google.com/d/topic/elasticsearch/FUJj2c4ycnc/unsubscribe?hl=en-US) [https://groups.google.com/d/topic/elasticsearch/FUJj2c4ycnc/unsubscribe?hl=en-US](https://groups.google.com/d/topic/elasticsearch/FUJj2c4ycnc/unsubscribe?hl=en-US).  
> To unsubscribe from this group and all its topics, send an email to [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com) \<\>.  
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out) [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> 
> --  
> You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com) \<\>.  
> For more options, visit  
> ...
> 
> --  
> You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com) [mailto:elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/18309d8a-9476-4d31-a79b-d44f79d79b38%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/18309d8a-9476-4d31-a79b-d44f79d79b38%40googlegroups.com) [https://groups.google.com/d/msgid/elasticsearch/18309d8a-9476-4d31-a79b-d44f79d79b38%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/18309d8a-9476-4d31-a79b-d44f79d79b38%40googlegroups.com?utm_medium=email&utm_source=footer).  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout) [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/F6E9ADE7-E0F2-42E4-9630-AD5B59AA0921%40pilato.fr](https://groups.google.com/d/msgid/elasticsearch/F6E9ADE7-E0F2-42E4-9630-AD5B59AA0921%40pilato.fr).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Bao\_Quan\_Ho](https://avatars.discourse-cdn.com/v4/letter/b/8baadc/32.png) [@Bao\_Quan\_Ho](https://discuss.elastic.co/u/Bao_Quan_Ho)\
**Post date:** [February 2, 2015, 7:14pm UTC](https://discuss.elastic.co/t/elastic-search-with-couchdb-river-plugin-cant-find-any-documents/12263/13 "2015-02-02T19:14:31Z")

</div>

Sorry about that David. After setting to DEBUG, I don't anything that's  
showing an error. I did a grep for "testdb" and only found a lot of (I  
also did look at the raw log and did not see any errors):

Elasticsearch.log:  
[Crime-Buster][testdb]state: [POST\_RECOVERY]-\>[STARTED], reason [global  
state is [STARTED]]  
[Crime-Buster][testdb]processing [shard-started ([testdb][4]  
node[60hasdfadsf...].[P],s[INITIALIZING]), reason [after recovery from  
gateway]]: done applying updated cluster\_state  
[Crime-Buster][testdb] updating index\_buffer size from [64mb] to [6.3mb]

A side note, since I'm more accustomed to Windows OS. I took the time to  
install all the same application versions as above and I was able to do a  
query.

One thing I did notice when I did a query on Windows 7, the index [testdb]  
was not found and I had to do a

# curl -XPUT localhost:9200/testdb

then I did

# curl localhost:9200/testdb/testdb/\_search , which is pulling the data

from couchdb correctly. But again this was all working on Windows 7 OS but  
I can't get this working on Centos.

Do you happen to know if there is a issue using Centos 7 RHEL that may not  
allow the query to go through?

On Monday, February 2, 2015 at 11:54:53 AM UTC-5, David Pilato wrote:

> So you should try to change logs to DEBUG or TRACE and see what it tells.
> 
> --  
> _David Pilato_ | _Technical Advocate_ | _[Elasticsearch.com](http://Elasticsearch.com)  
> [http://Elasticsearch.com](http://Elasticsearch.com)_  
> @dadoonet [https://twitter.com/dadoonet](https://twitter.com/dadoonet) | @elasticsearchfr  
> [https://twitter.com/elasticsearchfr](https://twitter.com/elasticsearchfr) | @scrutmydocs  
> [https://twitter.com/scrutmydocs](https://twitter.com/scrutmydocs)
> 
> Le 2 févr. 2015 à 17:20, Bao-Quan Ho \<[ho.ba...@gmail.com](mailto:ho.ba...@gmail.com) \<javascript:\>\> a  
> écrit :
> 
> looking in /vars/log/elasticsearch/elasticsearch.log  
> [2015-02-02 10:42:31,415][INFO][river.couchdb][Matt Murdock][couchdb][  
> testdb] starting couchdb stream: host [localhost], port [5984], filter [  
> null], db [testdb], indexing to [testdb]/[testdb]
> 
> On Monday, February 2, 2015 at 11:05:53 AM UTC-5, David Pilato wrote:
> 
> Anything in logs?
> 
> --  
> _David Pilato_ | _Technical Advocate_ | _[Elasticsearch.com](http://Elasticsearch.com)  
> [http://elasticsearch.com/](http://elasticsearch.com/)_  
> @dadoonet [https://twitter.com/dadoonet](https://twitter.com/dadoonet) | @elasticsearchfr  
> [https://twitter.com/elasticsearchfr](https://twitter.com/elasticsearchfr) | @scrutmydocs  
> [https://twitter.com/scrutmydocs](https://twitter.com/scrutmydocs)
> 
> Le 2 févr. 2015 à 17:04, Bao-Quan Ho [ho.ba...@gmail.com](mailto:ho.ba...@gmail.com) a écrit :
> 
> Hello I tried as suggested but I get the same outcome:
> 
> # curl localhost:9200/testdb/\_search?pretty=1
> 
> {  
> "took" : 1,  
> "timed\_out" : false,  
> "\_shards" : {  
> "total" : 5,  
> "successful" : 5,  
> "failed" : 0  
> },  
> "hits" : {  
> "total" : 0,  
> "max\_score" : null,  
> "hits" :   
> }  
> }
> 
> On Mon, Feb 2, 2015 at 6:35 AM, David Pilato [da...@pilato.fr](mailto:da...@pilato.fr) wrote:
> 
> Try with:
> 
> localhost:9200/testdb/\_search
> 
> I think you are using the default type name here which is not IIRC the  
> river name.
> 
> ## HTH
> 
> David 😉  
> Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs
> 
> Le 2 févr. 2015 à 11:43, Bao-Quan Ho [ho.ba...@gmail.com](mailto:ho.ba...@gmail.com) a écrit :
> 
> David,
> 
> Sorry for the old post revival, but I'm getting this same error with no  
> hits with Couchdb rivers (2.4.1), Elasticsearch (1.4.2), and Couchdb  
> (1.6.1). I am fairly new to using couch-rivers but I've installed all the  
> applications and they are running on Centos 7. Can you please see if you  
> notice anything wrong? I've looked everywhere but can not find a  
> solution. Thank you in advance
> 
> I added some dummy data into my couchdb database "testdb":
> 
> # curl -XGET localhost:5984/testdb/\_changes
> 
> {"results":[  
> {"seq":1,"id":"1","changes":[{"rev":"1-0291....."}]},  
> {"seq":2,"id":"2","changes":[{"rev":"1-1945....."}]},  
> {"seq":3,"id":"3","changes":[{"rev":"1-62a5....."}]},  
> {"seq":4,"id":"4","changes":[{"rev":"1-7e93....."}]},  
> ],  
> "last\_seq":4}
> 
> I run this to make the index:
> 
> # curl -X PUT '[http://localhost:9200/\_river/testdb/\_meta](http://localhost:9200/_river/testdb/_meta)' -d '{ "type" :
> 
> "couchdb", "couchdb" : { "host" : "localhost", "port" : 5984, "db" :  
> "testdb", "filter" : null }"'
> 
> Get a return of:
> 
> # 
> 
> {"index":"\_river","\_type":"testdb","\_id":"\_meta","\_version":1,"created":true"}
> 
> When I try to do the query:
> 
> # curl localhost:9200/testdb/testdb/\_search?pretty=1
> 
> {  
> "took" : 1,  
> "timed\_out" : false,  
> "\_shards" : {  
> "total" : 5,  
> "successful" : 5,  
> "failed" : 0  
> },  
> "hits" : {  
> "total" : 0,  
> "max\_score" : null,  
> "hits" :   
> }  
> }
> 
> When I use the
> 
> # curl [http://localhost:9200/\_search?q=\*&pretty=true](http://localhost:9200/_search?q=*&pretty=true)
> 
> {  
> "took" : 2,  
> "timed\_out" : false,  
> "\_shards" : {  
> "total" : 16,  
> "successful" : 16,  
> "failed" : 0  
> },  
> "hits" : {  
> "total" : 1,  
> "max\_score" : 1.0,  
> "hits" : [ {  
> "\_index" : "\_river",  
> "\_type" : "testdb",  
> "\_id" : "\_meta",  
> "\_score" : "1.0",  
> "\_source" : {"type" "couchdb", "couchdb" : {"host" : "localhost",  
> "port": "5984", "db" : "testdb", "filter" : null}}  
> } ]  
> }  
> }
> 
> On Wednesday, June 5, 2013 at 1:59:04 AM UTC-4, David Pilato wrote:
> 
> Just to double check, could you run:  
> [http://localhost:9200/\_search?q=\*&pretty=true](http://localhost:9200/_search?q=*&pretty=true)  
> [http://localhost:9200/my\_db/\_search?q=\*&pretty=true](http://localhost:9200/my_db/_search?q=*&pretty=true)
> 
> --  
> David 😉  
> Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs
> 
> Le 5 juin 2013 à 00:19, Yannis Psarras [yannis....@gmail.com](mailto:yannis....@gmail.com) a écrit :
> 
> And with the q=\* I get the same really as above
> 
> (for query: [http://localhost:9200/my\_db/\_search?q=\*&pretty=true](http://localhost:9200/my_db/_search?q=*&pretty=true))
> 
> On Wed, Jun 5, 2013 at 1:17 AM, Yannis Psarras [yannis....@gmail.com](mailto:yannis....@gmail.com)  
> wrote:
> 
> I get the following:
> 
> curl -XGET "
> 
> ...

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/ea842b9f-35ac-4350-ae77-0a4d9f25a6e3%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/ea842b9f-35ac-4350-ae77-0a4d9f25a6e3%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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, 12:35am UTC](https://discuss.elastic.co/t/elastic-search-with-couchdb-river-plugin-cant-find-any-documents/12263/14 "2017-07-06T00:35:18Z")

</div>


