No, I don't... Database has exactly 5 docs, _changes has notified 5
changes, but the index _status only has 4 docs (the fourth is missing)
PD I think I pressed the wrong button and sent you an email. I'm sorry if I
did that!
On Thursday, May 17, 2012 12:23:16 PM UTC+2, David Pilato wrote:
Did you update one of your doc in couchDb ?
David
Twitter : @dadoonet / @elasticsearchfr
Le 17 mai 2012 à 12:14, jose2b bangojose@gmail.com a écrit :
Hi David, thank you.
I check the _changes stream with this query:
http://192.168.2.11:5984/debug_db/_changeshttp://192.168.2.11:5984/debug_key_control/_changes and
I get the new changes every time I create a new document, for example:
{"seq":5,"id":"39d895974c8b7616c3052b0bb220c0eb","changes":[{"rev":"1-a2bc78e58c59ac6130916b6e61ae0d61"}]}
But the index _status (
http://192.168.2.11:9200/my_index/_status?pretty=truehttp://192.168.2.11:9200/hhh/_status?pretty=true)
still shows the previous status:
"docs" : {
"num_docs" : 4,
"max_doc" : 4,
"deleted_docs" : 0
},
Any ideas? Do you want more info? How could I set log for CouchDB River?
On Thursday, May 17, 2012 11:53:45 AM UTC+2, David Pilato wrote:
Can you check if the couchDb _changes API provided the 5 five documents
you expect ?
Perhaps, you could set log for couchDb river to debug ?
David
Twitter : @dadoonet / @elasticsearchfr
Le 17 mai 2012 à 11:50, jose2b bangojose@gmail.com a écrit :
Hello! I'm working in a project which uses CouchDB as data base and ES
as search tool, using the River plugin. I have created this index:
curl -XPUT '192.168.2.11:9200/_river/es_index/_meta' -d '{
"type" : "couchdb",
"couchdb" : {
"host" : "192.168.2.11",
"port" : 5984,
"db" : "debug_db","user" : "my_user","password" : "my_pwd",
"filter" : null
},
"index" : {
"index" : "my_index",
"type" : "my_type",
"bulk_size" : "100",
"bulk_timeout" : "10ms"
}
}'
Sometimes, when I create a new document (from Futon or from code using
Ektorp library), the index updates correctly. However, sometimes it
doesn't. I have been doing some tests, and I don't find an answer. The
_changes stream always updates, so I don't understand why the index doesn't
do that.
In addition, if the index doesn't changes with the new document, but it
does with the next one, the first will never be counted. I mean, for
example:
- I have 3 docs. I create another one. The index still has 3 docs.
- I create my fifth doc. The index only updates with the last one.
The fourth doc is never indexed.
Can someone help me? Thank you.
On Thursday, May 17, 2012 12:23:16 PM UTC+2, David Pilato wrote:
Did you update one of your doc in couchDb ?
David
Twitter : @dadoonet / @elasticsearchfr
Le 17 mai 2012 à 12:14, jose2b bangojose@gmail.com a écrit :
Hi David, thank you.
I check the _changes stream with this query:
http://192.168.2.11:5984/debug_db/_changeshttp://192.168.2.11:5984/debug_key_control/_changes and
I get the new changes every time I create a new document, for example:
{"seq":5,"id":"39d895974c8b7616c3052b0bb220c0eb","changes":[{"rev":"1-a2bc78e58c59ac6130916b6e61ae0d61"}]}
But the index _status (
http://192.168.2.11:9200/my_index/_status?pretty=truehttp://192.168.2.11:9200/hhh/_status?pretty=true)
still shows the previous status:
"docs" : {
"num_docs" : 4,
"max_doc" : 4,
"deleted_docs" : 0
},
Any ideas? Do you want more info? How could I set log for CouchDB River?
On Thursday, May 17, 2012 11:53:45 AM UTC+2, David Pilato wrote:
Can you check if the couchDb _changes API provided the 5 five documents
you expect ?
Perhaps, you could set log for couchDb river to debug ?
David
Twitter : @dadoonet / @elasticsearchfr
Le 17 mai 2012 à 11:50, jose2b bangojose@gmail.com a écrit :
Hello! I'm working in a project which uses CouchDB as data base and ES
as search tool, using the River plugin. I have created this index:
curl -XPUT '192.168.2.11:9200/_river/es_index/_meta' -d '{
"type" : "couchdb",
"couchdb" : {
"host" : "192.168.2.11",
"port" : 5984,
"db" : "debug_db","user" : "my_user","password" : "my_pwd",
"filter" : null
},
"index" : {
"index" : "my_index",
"type" : "my_type",
"bulk_size" : "100",
"bulk_timeout" : "10ms"
}
}'
Sometimes, when I create a new document (from Futon or from code using
Ektorp library), the index updates correctly. However, sometimes it
doesn't. I have been doing some tests, and I don't find an answer. The
_changes stream always updates, so I don't understand why the index doesn't
do that.
In addition, if the index doesn't changes with the new document, but it
does with the next one, the first will never be counted. I mean, for
example:
- I have 3 docs. I create another one. The index still has 3 docs.
- I create my fifth doc. The index only updates with the last one.
The fourth doc is never indexed.
Can someone help me? Thank you.
On Thursday, May 17, 2012 12:23:16 PM UTC+2, David Pilato wrote:
Did you update one of your doc in couchDb ?
David
Twitter : @dadoonet / @elasticsearchfr
Le 17 mai 2012 à 12:14, jose2b bangojose@gmail.com a écrit :
Hi David, thank you.
I check the _changes stream with this query:
http://192.168.2.11:5984/debug_db/_changeshttp://192.168.2.11:5984/debug_key_control/_changes and
I get the new changes every time I create a new document, for example:
{"seq":5,"id":"39d895974c8b7616c3052b0bb220c0eb","changes":[{"rev":"1-a2bc78e58c59ac6130916b6e61ae0d61"}]}
But the index _status (
http://192.168.2.11:9200/my_index/_status?pretty=truehttp://192.168.2.11:9200/hhh/_status?pretty=true)
still shows the previous status:
"docs" : {
"num_docs" : 4,
"max_doc" : 4,
"deleted_docs" : 0
},
Any ideas? Do you want more info? How could I set log for CouchDB River?
On Thursday, May 17, 2012 11:53:45 AM UTC+2, David Pilato wrote:
Can you check if the couchDb _changes API provided the 5 five documents
you expect ?
Perhaps, you could set log for couchDb river to debug ?
David
Twitter : @dadoonet / @elasticsearchfr
Le 17 mai 2012 à 11:50, jose2b bangojose@gmail.com a écrit :
Hello! I'm working in a project which uses CouchDB as data base and ES
as search tool, using the River plugin. I have created this index:
curl -XPUT '192.168.2.11:9200/_river/es_index/_meta' -d '{
"type" : "couchdb",
"couchdb" : {
"host" : "192.168.2.11",
"port" : 5984,
"db" : "debug_db","user" : "my_user","password" : "my_pwd",
"filter" : null
},
"index" : {
"index" : "my_index",
"type" : "my_type",
"bulk_size" : "100",
"bulk_timeout" : "10ms"
}
}'
Sometimes, when I create a new document (from Futon or from code using
Ektorp library), the index updates correctly. However, sometimes it
doesn't. I have been doing some tests, and I don't find an answer. The
_changes stream always updates, so I don't understand why the index doesn't
do that.
In addition, if the index doesn't changes with the new document, but it
does with the next one, the first will never be counted. I mean, for
example:
- I have 3 docs. I create another one. The index still has 3 docs.
- I create my fifth doc. The index only updates with the last one.
The fourth doc is never indexed.
Can someone help me? Thank you.