incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matthew Woodward <m...@mattwoodward.com>
Subject CouchDB + ElasticSearch
Date Sat, 29 Sep 2012 15:07:55 GMT
I'm new to getting CouchDB and ElasticSearch working together, and I've
tried all the examples I can find but haven't had any luck yet. I'm sure
I'm simply misunderstanding something so I'm hoping someone can push me in
the right direction.

I've installed ElasticSearch (latest version) and the CouchDB River. Assume
I have a database in CouchDB called foo that has a bunch of documents in
it. When I run this on the ElasticSearch server:
curl -XPUT 'http://localhost:9200/_river/foo/_meta' -d
'{"type":"couchdb","couchdb":{"host":"my.couch.server","port":5984,"db":"foo","filter":null},"index":{"index":"foo","type":"foo","bulk_size":"100","bulk_timeout":"10ms"}}'

I get this response:
{"ok":true,"_index":"_river","_type":"foo","_id":"_meta","_version":2}

But no matter what search I try to run I always get something
like {"error":"IndexMissingException[[votes] missing]","status":404} as the
response.

I'm sure I'm missing something very basic but none of the examples I've
come across seem to work as they're supposed to, so I figured I'd ask.
Thanks.
-- 
Matthew Woodward
matt@mattwoodward.com
http://blog.mattwoodward.com
identi.ca / Twitter: @mpwoodward

Please do not send me proprietary file formats such as Word, PowerPoint,
etc. as attachments.
http://www.gnu.org/philosophy/no-word-attachments.html

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message