lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yonik Seeley" <ysee...@gmail.com>
Subject Re: Deleting documents
Date Wed, 12 Apr 2006 18:23:56 GMT
On 4/12/06, Chris Hostetter <hossman_lucene@fucit.org> 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

Mime
View raw message