Hello list, I know this is a little OT but I wonder how I would go about using cFerret directly through C/C++ for indexing. Right now I do index = Index::Index.new(:path => ''/path/to/index'') index << {:title => "Programming Ruby", :content => "blah blah blah"} How would I do this in C/C++ against cFerret? Thanks! //Henrik
On Thu, Jun 14, 2007 at 10:58:01PM +0200, Henrik Zagerholm wrote:> Hello list, > > I know this is a little OT but I wonder how I would go about using > cFerret directly through C/C++ for indexing. > > Right now I do > > index = Index::Index.new(:path => ''/path/to/index'') > > index << {:title => "Programming Ruby", :content => "blah blah blah"} > > How would I do this in C/C++ against cFerret?Have you had a look at Ferret''s source tree? There are c unit tests, maybe these help to get you started? I think you''re the first to try this, so good luck :-) Jens -- Jens Kr?mer webit! Gesellschaft f?r neue Medien mbH Schnorrstra?e 76 | 01069 Dresden Telefon +49 351 46766-0 | Telefax +49 351 46766-66 kraemer at webit.de | www.webit.de Amtsgericht Dresden | HRB 15422 GF Sven Haubold, Hagen Malessa
15 jun 2007 kl. 09:52 skrev Jens Kraemer:> On Thu, Jun 14, 2007 at 10:58:01PM +0200, Henrik Zagerholm wrote: >> Hello list, >> >> I know this is a little OT but I wonder how I would go about using >> cFerret directly through C/C++ for indexing. >> >> Right now I do >> >> index = Index::Index.new(:path => ''/path/to/index'') >> >> index << {:title => "Programming Ruby", :content => "blah blah blah"} >> >> How would I do this in C/C++ against cFerret? > > Have you had a look at Ferret''s source tree? There are c unit tests, > maybe these help to get you started? >Yes I looked at these tests but instead of interfacing directly to the files used by the tests I would like to interface directly through ferret.h. I''ll do some more research and start to do some coding to see what I come up with. Just wanted to see if anyone already had done it. :)> I think you''re the first to try this, so good luck :-) >Thanks! :)> Jens > > > -- > Jens Kr?mer > webit! Gesellschaft f?r neue Medien mbH > Schnorrstra?e 76 | 01069 Dresden > Telefon +49 351 46766-0 | Telefax +49 351 46766-66 > kraemer at webit.de | www.webit.de > > Amtsgericht Dresden | HRB 15422 > GF Sven Haubold, Hagen Malessa > _______________________________________________ > Ferret-talk mailing list > Ferret-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/ferret-talk