[Xapian-discuss] Re: Xapian-discuss Digest, Vol 35, Issue 9

Jeff Anderson captvanhalen at gmail.com
Mon Apr 9 22:22:33 BST 2007


On 4/9/07, xapian-discuss-request at lists.xapian.org
<xapian-discuss-request at lists.xapian.org> wrote:
> Message: 6
> Date: Mon, 9 Apr 2007 13:53:15 -0700
> From: "Mark Blythe" <list at markblythe.com>
> Since Xapian doesn't have any expectations about the data you store in the
> document, you can store whatever you like.  It could be a serialized data
> structure (using Data::Dumper, JSON, etc), or something more simple like a
> delimited string.  In your case, you might store something like:

Oh dear ... for real? Hmmm. Well, if that's the only way ... still,
i'd rather not have to write a parser to get back display results.
Since any character could be allowed in the description, it's an
unsafe assumption to say a delitimited string would work 100% of the
time. And using eval to reconstruct a Data::Dumper dumped hash ref can
be dangerous. XML? Great. :|

Thanks for help ...

-- 
jeffa



More information about the Xapian-discuss mailing list