search for: frt_td_to_json

Displaying 1 result from an estimated 1 matches for "frt_td_to_json".

2006 Oct 10
4
Need help for coding an extension to ferret
...like to load each document from ids in my TopDoc object, to make the json string myself from that, but i don''t know how to load my documents from this class... it''s really weirdo to me actually :\ hope somebody can help ! Here is my code, situated in r_search.c : static VALUE frt_td_to_json(VALUE self) { int i; VALUE rhits = rb_funcall(self, id_hits, 0); VALUE rhit; const int len = RARRAY(rhits)->len; long pos; for (i = 0; i < len; i++) { rhit = RARRAY(rhits)->ptr[i]; pos = FIX2INT(rb_funcall(rhit, id_doc, 0)); // // HERE I WOUlD LIKE TO LOAD THE DOCUMENTS, ID I...