Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to index CouchDB with Elastic Search River: In plain english
    text
    copied!<p>I really don't know what's going on with my configuration, but I'm just not able to query anything after indexing (don't even know if I'm doing the indexing part correctly). Could someone please tell me what each of the following means and should be?</p> <p>I have a CouchDB database called <code>bestdb</code>. Inside this database I have document types like <code>product</code> and <code>customer</code>. </p> <p>Now I installed elastic search version 0.18.7 and the corresponding couchdb river. I started elastic search and couchdb. I set the network.host of elasticsearch to be an ip address: 10.0.0.129 . I followed the instructions in the <a href="http://www.elasticsearch.org/tutorials/2010/08/01/couchb-integration.html" rel="nofollow">tutorial</a> :</p> <pre><code>curl -XPUT '10.0.0.129:9200/_river/{A}/_meta' -d '{ "type" : "couchdb", "couchdb" : { "host" : "localhost", "port" : 5984, "db" : "bestdb", "filter": null }, "index" : { "index" : "{B}", "type" : "{C}", "bulk_size" : "100", "bulk_timeout" : "10ms" } }' </code></pre> <p>{A}: What's this? My understanding is that this is just an internal elastic search index right? It's not being used for querying or searching right? So this could be any name right?</p> <p>{B}: What's this index? How is this different from the one above? What should the value of this be in my scenario?</p> <p>{C}: Is this related to the Document Type in couchdb, like <code>product</code> or <code>customer</code> ?</p> <p>The online tutorial just sets everything to be the same value. How would my curl statement look like if I wanted to query all product documents or customer documents?</p> <p>Thank you to whoever that clears things up a bit for me. </p> <p>Regards, Mark Huang</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload