Hello,

I have a problem deleting documents from the index.

In the tutorial "<delete><id>SP2514N</id></delete>" is used as an
example for deleting. I was wondering if "<id>" is some kind of
keyword or the name of a field (in the example, a unique field
named "id" is used). In my config I have the line
 <uniqueKey>bookID</uniqueKey>
making bookID (type slong as defined in the example config) my
unique id.

So I tried
 <delete><bookID>113976235</bookID></delete>
which resulted in
 <result status="400">unexpected XML tag /delete/bookID</result>

Okay, so "id" seems to be a keyword, rather than a field name.
With my next try
 <delete><id>113976235</id></delete>
the query worked fine:
 <result status="0"></result>
But after a <commit/> I found the number of documents unchanged
in the stats. Furthermore the value of deletesById was 0.
Oddly enough cumulative_deletesById was 1 (what does this value
actually mean?).

Any ideas what's going wrong?

Thanks,
Marcus

Reply via email to