[Xapian-discuss] C++ parser for doc.get_data() result.

James Aylett james-xapian at tartarus.org
Thu Oct 1 11:48:33 BST 2009


On Wed, Sep 30, 2009 at 03:04:44PM -0700, Kevin Duraj wrote:

> Did anybody wrote and would like to share a routines that parse result
> from doc.get_data() into some key and  pair values in C++ ?

There's code in omega's query.cc (around line 2050 on trunk).

However if you're indexing yourself (as well as searching yourself),
you may prefer to use another serialisation format for which you have
an off-the-shelf library. There's nothing magical about the omega
convention for use of document data -- it is purely a convention. (And
has some limitations if you want to stuff arbitrary data inside it.)

J

-- 
  James Aylett

  talktorex.co.uk - xapian.org - uncertaintydivision.org



More information about the Xapian-discuss mailing list