To fix this, I run <br><br>(elephant:find-inverted-index 'product-set 'rank)<br><br>But I still don't understand how this could have happened. My guess is that it may have to do with adding the 'rank slot recently has confused the index somehow. I don't know how.<br>
<br>Yarek <br><br><div class="gmail_quote">On Mon, Mar 2, 2009 at 5:28 PM, Yarek Kowalik <span dir="ltr"><<a href="mailto:yarek.kowalik@gmail.com">yarek.kowalik@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>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:<br>
<br>> (elephant:get-instances-by-class 'product-set)<br>(#<PRODUCT-SET oid:27002> #<PRODUCT-SET oid:67705>)<br>> (elephant:map-inverted-index #'ele::identity2 'product-set 'rank :collect t)<br>
(#<PRODUCT-SET oid:27002> #<PRODUCT-SET oid:67705> NIL NIL NIL NIL NIL NIL NIL<br> NIL)<br><br>For some strange reason I get OIDs that should be dead:<br><br>> (elephant:map-inverted-index #'ele::identity2 'product-set 'rank :collect t :oids t)<br>
(27002 67705 58702 58704 58705 58707 58708 58709 58710 58711)<br><br>Any idea what's going on and how this could have happened? <br><br>Is there a way of clearing OIDs for which I get NILs?<br><br>Note: I'm using code pulled from unstable branch at 2008-12-05 21:29.<br>
<br>Thanks in advance,<br><font color="#888888"><br>Yarek<br><br>
</font></blockquote></div><br>