develooper Front page | perl.kiokudb | Postings from August 2009

Index the id of another object with gin

Thread Next
From:
Ask Bjørn Hansen
Date:
August 10, 2009 05:45
Subject:
Index the id of another object with gin
Message ID:
4D2C7B4A-F358-4A58-A75A-D95F9E0746D0@develooper.com
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

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About