Record is not showing in couchdb


(jason) #1

Hello,

I am running ES on windows. I installed river-couchdb plugin and
indexed my database, let's call index eug_idx and call database
eugdb. Then I ran the command in shell command under windows to index
a new document with firstname and lastname fields:

C:>curl -X PUT http://localhost:9200/_river/eug_idx/1 -d @sample.json
{"ok":true,"_index":"_river","_type":"eug_idx","_id":"1","_version":4}

where sample.json file has contents below.

{
"firstname": "test1",
"lastname: "test2"
}

However, the new index (record) does not show in the 'eugdb' database
when I go to http://localhost:5984/eugdb.

Is it the expected behavior, or I somehow did not integrate ES with
couchdb properly?

Thanks,
Eugene.


(Shay Banon) #2

The river will mirror changes done to couchdb into elasticsearch, not the other way around.
On Tuesday, March 8, 2011 at 1:14 AM, eugene wrote:

Hello,

I am running ES on windows. I installed river-couchdb plugin and
indexed my database, let's call index eug_idx and call database
eugdb. Then I ran the command in shell command under windows to index
a new document with firstname and lastname fields:

C:>curl -X PUT http://localhost:9200/_river/eug_idx/1 -d @sample.json
{"ok":true,"_index":"_river","_type":"eug_idx","_id":"1","_version":4}

where sample.json file has contents below.

{
"firstname": "test1",
"lastname: "test2"
}

However, the new index (record) does not show in the 'eugdb' database
when I go to http://localhost:5984/eugdb.

Is it the expected behavior, or I somehow did not integrate ES with
couchdb properly?

Thanks,
Eugene.


(system) #3