[Xapian-discuss] Node.js binding

Richard Boulton richard at tartarus.org
Fri Oct 14 12:15:07 BST 2011


On 14 October 2011 10:50, Liam <xapian at networkimprov.net> wrote:
> Wondering if anyone's considered/planning a Node.js binding? (I can
> contribute to the effort; I have modest experience with the V8 api; though
> haven't started with xapian yet.)

I took a look at making one a while ago (when Node was pretty new) -
actually making an extension which calls some Xapian functions from
node is pretty easy to do by hand (though wrapping the full API would
be harder - and I don't think SWIG has any stable V8/javascript
support currently, so it would either have to be done manually or swig
would have to be modified.

The significant problem though is that many Xapian calls are
long-running, so need to be run in a sub-thread or sub-process.  Is
there any built-in support for that sort of thing in Node now? (there
wasn't when I last looked).

Alternatively, you could just make a client in V8 for a search server
built around Xapian (eg; http://restpose.org).

-- 
Richard



More information about the Xapian-discuss mailing list