[Xapian-discuss] Facets with Multiple Values

Peter Karman peter at peknet.com
Wed Jun 15 04:38:12 BST 2011


Ryan Bates wrote on 6/14/11 1:59 PM:

> I see there is a Xapian::StringListSerialiser class that appears to be
> what I want, but I don't see this class in the Ruby bindings (I'm
> using Xapian 1.2.2). If this is not available in the Ruby bindings,
> are there any work-around solutions to this problem?

Swish3 uses the workaround of joining multiple values with ASCII \x03 as in this
example in C++:

http://dev.swish-e.org/browser/libswish3/trunk/src/xapian/swish_xapian.cpp#L224

SWISH_TOKENPOS_BUMPER is defined here:

http://dev.swish-e.org/browser/libswish3/trunk/src/libswish3/libswish3.h#L119

-- 
Peter Karman  .  http://peknet.com/  .  peter at peknet.com



More information about the Xapian-discuss mailing list