[Xapian-discuss] patch proposal: omindex library or daemon

James Aylett james-xapian at tartarus.org
Mon Oct 24 06:44:10 BST 2011


On 23 Oct 2011, at 22:31, Liam wrote:

> Whew, I thought you were going to keep playing devil's advocate :-)

:)

> So we need to define the header file for this library... Would a subclass of
> WritableDatabase make sense? I like the fact that omindex both converts a
> file and inserts its text.


I'd have thought to get it started you'd just make the existing functions that omindex uses internally available externally via the library, so it's a helper function which, given a file and options, returns a Xapian::Document that you can write into the database. The current model for Xapian is that way round, rather than WritableDatabase making and inserting a Document in one go.

J

-- 
 James Aylett
 talktorex.co.uk - xapian.org - devfort.com - spacelog.org




More information about the Xapian-discuss mailing list