Anything in logs?
--
David Pilato | Technical Advocate | Elasticsearch.com
http://Elasticsearch.com
@dadoonet https://twitter.com/dadoonet | @elasticsearchfr
https://twitter.com/elasticsearchfr | @scrutmydocs
https://twitter.com/scrutmydocs
Le 2 févr. 2015 à 17:04, Bao-Quan Ho <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
<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 <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:
"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
{
"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/my_db/_search?q=*&pretty=true
--
David
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs
Le 5 juin 2013 à 00:19, Yannis Psarras 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)
On Wed, Jun 5, 2013 at 1:17 AM, Yannis Psarras yannis....@gmail.com
wrote:
I get the following:
curl -XGET "http://localhost:9200/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 wrote:
Not sure that default type is dbname.
What do you get with:
curl -XGET "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 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
{"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
{"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' -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"
{
"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.
For more options, visit 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.
To unsubscribe from this group and all its topics, send an email to
elasticsearc...@googlegroups.com.
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 elasticsearc...@googlegroups.com.
For more options, visit
...