API towards cFerret

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 Z. wrote:

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 :slight_smile:

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
[email protected] | www.webit.de

Amtsgericht Dresden | HRB 15422
GF Sven Haubold, Hagen Malessa

15 jun 2007 kl. 09:52 skrev Jens K.:

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. :slight_smile:

I think you’re the first to try this, so good luck :slight_smile:

Thanks! :slight_smile: