Index the id of another object with gin

[email protected] (Ask Bjørn Hansen) Mon, 10 Aug 2009 05:45:18 -0700
Newsgroups perl.kiokudb
Message-ID <[email protected]>
Hi -

One more question:

Class A have an owner attribute.  I want to index the id of the owners  
of the 'A' objects in the gin index.

Since the object doesn't know its own ID; how can I make the extractor  
callback add the id to the index?  (Obviously it's easy enough to hack  
around by stuffing the id in another attribute, but that doesn't seem  
to be the right thing to do).



  - ask