Hello,
It looks like a problem with the _type attribute. Deleting the entry
using the the correct type works:
curl -X DELETE http://localhost:9200/cm8/article/2329616,de_DE
{"ok":true,"found":true,"_index":"cm8","_type":"article","_id":"2329616,de_DE","_version":14}
Logfile shows:
[2012-03-20 11:59:34,937][TRACE][index.shard.service ] [Kiber the
Cruel] [cm8][0] delete [article#2329616,de_DE]
[2012-03-20 11:59:35,022][TRACE][index.shard.service ] [Kiber the
Cruel] [cm8][0] refresh with waitForOperations[false]
In contrast the river results in the lines:
[2012-03-20 11:57:04,557][TRACE][index.shard.service ] [Kiber the
Cruel] [cm8][0] delete [cm1#2329616,de_DE]
[2012-03-20 11:57:05,003][TRACE][index.shard.service ] [Kiber the
Cruel] [cm8][0] refresh with waitForOperations[false]
cm1 is not the _type but the name of the couchdb.
tom
Am 20.03.2012 11:49, schrieb Shay Banon:
How can you tell that the document is not deleted? It looks like it
was in elasticsearch based on the shard logging you enabled...
On Mon, Mar 19, 2012 at 6:11 PM, Tom Anheyer
<Tom.Anheyer@berlinonline.de mailto:Tom.Anheyer@berlinonline.de> wrote:
Hello,
After deleting a document in couchdb I got the following messages
in elastic search logfile. It looks like the document is deleted
but it remains in the index.
Has anybody an idea?
tom
<raw>
[2012-03-19 16:41:44,352][TRACE][river.couchdb ]
[Lorvex] [couchdb][cm8_river] [couchdb]
{"seq":271963,"id":"2329616,de_DE","changes":[{"rev":"4-ae8660826e9706e0965039eb7365fbed"}],"deleted":true,"doc":{"_id":"2329616,de_DE","_rev":"4-ae8660826e9706e0965039eb7365fbed","_deleted":true}}
[2012-03-19 16:41:44,353][TRACE][river.couchdb ]
[Lorvex] [couchdb][cm8_river] processing [delete]:
[cm8]/[cm1]/[2329616,de_DE]
[2012-03-19 16:41:45,353][TRACE][river.couchdb ]
[Lorvex] [couchdb][cm8_river] processing [_seq ]:
[_river]/[cm8_river]/[_seq], last_seq [271963]
[2012-03-19 16:41:45,354][TRACE][index.shard.service ]
[Lorvex] [_river][0] index
[Document<stored,binary,omitNorms,indexOptions=DOCS_ONLY<_source:[B@1262f7c>
indexed,omitNorms,indexOptions=DOCS_ONLY<_type:cm8_river>
stored,indexed,tokenized,omitNorms<_uid:>
indexed,tokenized<couchdb.last_seq:271963> indexed,tokenized<_all:>>]
[2012-03-19 16:41:45,356][TRACE][index.shard.service ]
[Lorvex] [cm8][0] delete [cm1#2329616,de_DE]
[2012-03-19 16:41:46,109][TRACE][index.shard.service ]
[Lorvex] [cm8][0] refresh with waitForOperations[false]
[2012-03-19 16:41:46,211][TRACE][index.shard.service ]
[Lorvex] [_river][0] refresh with waitForOperations[false]
</raw>
Sorry for the duplicate post.
--
Mit freundlichen GrüÃen
Tom Anheyer
Entwicklung& Technik
Karl-Liebknecht-StraÃe 29 | 10178 Berlin | Germany
Tel.: +49 (30) 23 27 - 52 10
Fax: +49 (30) 23 27 - 55 96
E-Mail: tom.anheyer@berlinonline.de
Berlin.de | BerlinOnline.de | B2B-Deutschland.de | Deutschland-Reise.de | VisitBerlin.de
Amtsgericht Berlin-Charlottenburg, HRA 31951
Sitz der Gesellschaft: Berlin, Deutschland
Geschäftsführer Olf Dziadek
USt.-IdNr: DE219483549
persönlich haftender Gesellschafter:
BerlinOnline Stadtportalbeteiligungsgesellschaft mbH
Amtsgericht Berlin-Charlottenburg, HRB 79077
Sitz der Gesellschaft: Berlin, Deutschland
Geschäftsführer Olf Dziadek