Deleting documents

2006-04-11 Thread Marcus Stratmann
Hello,

I have a problem deleting documents from the index.

In the tutorial "SP2514N" is used as an
example for deleting. I was wondering if "" 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
 bookID
making bookID (type slong as defined in the example config) my
unique id.

So I tried
 113976235
which resulted in
 unexpected XML tag /delete/bookID

Okay, so "id" seems to be a keyword, rather than a field name.
With my next try
 113976235
the query worked fine:
 
But after a  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



Re: Deleting documents

2006-04-11 Thread Yonik Seeley
On 4/11/06, Marcus Stratmann <[EMAIL PROTECTED]> wrote:
> Okay, so "id" seems to be a keyword, rather than a field name.

Yes, I believe the Wiki has an example like this (a uniqueKey field
not named "id")

> With my next try
>  113976235
> the query worked fine:
>  
> But after a  I found the number of documents unchanged
> in the stats.

What stat?  maxDoc may be unchanged since it doesn't reflect deleted
documents that haven't been squeezed out of the index (it's a lucene
thing).  numDocs should reflect the deletion.

> Furthermore the value of deletesById was 0.
> Oddly enough cumulative_deletesById was 1 (what does this value
> actually mean?).

If you had looked at the stats before doing a , deletesById
would probably be 1.
It gets reset on a   cumulative stats are never reset.

-Yonik