OK, I think I fixed this bug. Haven't added a test case yet... I'll get to that sometime unless someone beats me to it. It does sort of require a separate schema to test though (which out test harness doesn't really handle yet, I think)
-Yonik On 4/12/06, Yonik Seeley <[EMAIL PROTECTED]> wrote: > On 4/12/06, Chris Hostetter <[EMAIL PROTECTED]> wrote: > > > > : 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. > > Huh.. right you are. I guess we've only used strings for ids before. > Marcus, unless you need to do range queries on your id field for some > reason, I'd suggest changing it to a string type. > > In the meantime, I'll fix that bug. > > -Yonik