using bat file..
curl -XPUT "http://localhost:9200/_river/dc_user_river/_meta" -d
@mongodb-dc-user-river.json
in mongodb-dc-user-river.json file
{
"type": "mongodb",
"mongodb": {
"db": "data-collection",
"collection": "DC_USER"
},
"index": {
"name": "dc_user_idx",
"type": "DC_USER"
}
}
On Friday, March 22, 2013 2:20:55 PM UTC+5:30, David Pilato wrote:
Why do you think you have an dc_role_idx index?
How did you create it?--
David Pilato | Technical Advocate | Elasticsearch.com
@dadoonet https://twitter.com/dadoonet | @elasticsearchfrhttps://twitter.com/elasticsearchfr
| @scrutmydocs https://twitter.com/scrutmydocsLe 22 mars 2013 à 09:46, srikanth gone <srika...@gmail.com <javascript:>>
a écrit :sorry, i have done mistake to add plugin.. in Elasticsearch folder..
now it is creating indexes..
actually i have given index name like this in mongodb-dc-user-river.json...
{
"type": "mongodb",
"mongodb": {
"db": "data-collection",
"collection": "DC_USER"
},
"index": {
"name": "dc_user_idx",
"type": "DC_USER"
}
}if i am running browser
http://localhost:9200/dc_user_idx/_search?q=a*&pretty
output:
{
"took" : 31,
"timed_out" : false,
"_shards" : {
"total" : 5,
"successful" : 5,
"failed" : 0
},
"hits" : {
"total" : 1,
"max_score" : 1.0,
"hits" : [ {
"_index" : "dc_user_idx",
"_type" : "DC_USER",
"_id" : "727fa49f-7991-4f74-98b3-5d5a1204546c",
"_score" : 1.0, "_source" : {"_id":"727fa49f-7991-4f74-98b3-5d5a1204546c","_class":"com.newwave.dc.user.model.User","userName":"admin","password":"admin","firstName":"Super","lastName":"User","role":[{"role":"{ "$ref" : "DC_ROLE", "$id" : "b8f32bfc-8286-49c8-82df-924bc2b552e3" }"},{"role":"{ "$ref" : "DC_ROLE", "$id" : "7de87296-bc5a-4d10-bd42-b2d16f0c8056" }"}],"createdBy":"System","createdOn":"2013-03-21T14:58:48.000Z"}
} ]
}
}from java
but still i am getting same error..
org.elasticsearch.indices.IndexMissingException: [dc_role_idx] missingOn Friday, March 22, 2013 3:19:36 AM UTC+5:30, InquiringMind wrote:
You are querying for index named dc_role_idx but your bat file is putting
the documents into the index named _river.Query:
.setIndices("dc_user_idx")
But data:
D:\curl-7.29.0-rtmp-ssh2-ssl-sspi-zlib-idn-static-bin-w32>curl -XPUT "
http://localhost:9200/_river/dc_user_river/_meta" -d
@mongodb-dc-user-river.json{"ok":true,"_index":"_river","_type":"dc_user_river","_id":"_meta","_version":3}
--
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 <javascript:>.
For more options, visit 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.
For more options, visit https://groups.google.com/groups/opt_out.