[elephant-devel] map-inverted index returns list with nil values

Yarek Kowalik yarek.kowalik at gmail.com
Tue Mar 3 01:28:26 UTC 2009


I have a strange situation.  I get inconsistent results when using
get-instances-by-class and map-inverted-index.  The first one is correct,
the second one returns a bunch of NILs in the list in addition to the
correct results.  Is this a bug or an expected result?  Here are my commands
and output:

> (elephant:get-instances-by-class 'product-set)
(#<PRODUCT-SET oid:27002> #<PRODUCT-SET oid:67705>)
> (elephant:map-inverted-index #'ele::identity2 'product-set 'rank :collect
t)
(#<PRODUCT-SET oid:27002> #<PRODUCT-SET oid:67705> NIL NIL NIL NIL NIL NIL
NIL
 NIL)

For some strange reason I get OIDs that should be dead:

> (elephant:map-inverted-index #'ele::identity2 'product-set 'rank :collect
t :oids t)
(27002 67705 58702 58704 58705 58707 58708 58709 58710 58711)

Any idea what's going on and how this could have happened?

Is there a way of clearing OIDs for which I get NILs?

Note: I'm using code pulled from unstable branch at 2008-12-05 21:29.

Thanks in advance,

Yarek
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.common-lisp.net/pipermail/elephant-devel/attachments/20090302/e2776083/attachment.html>


More information about the elephant-devel mailing list