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

Ian Eslick eslick at media.mit.edu
Tue Mar 3 11:48:14 UTC 2009


You should upgrade to elephant-1.0.  There was a bug on unstable,  
which I no longer update, that under certain circumstances would fail  
to delete instances from indices while they were deleted from the  
instance index.

Ian

On Mar 2, 2009, at 10:31 PM, Yarek Kowalik wrote:

> To fix this, I run
>
> (elephant:find-inverted-index 'product-set 'rank)
>
> 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.
>
> Yarek
>
> On Mon, Mar 2, 2009 at 5:28 PM, Yarek Kowalik  
> <yarek.kowalik at gmail.com> wrote:
>
> 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
>
>
> _______________________________________________
> elephant-devel site list
> elephant-devel at common-lisp.net
> http://common-lisp.net/mailman/listinfo/elephant-devel





More information about the elephant-devel mailing list