: Could it be the problem is that my unique key field : is of type slong (as defined in the tutorial)?
I just tried modifying the example schema to use type slong for the "id" field, and i can reproduce what you are describing -- numDocs doesn't go down, ... because the delete isn't working. I'm guessing the problem is that the code for deleting by id is assuming it can do a delete b term (which it can) but isn't running the string through the FieldType to get the internalized value first. Can you file a bug for this in Jira so we can track it properly? -Hoss