[Xapian-discuss] Facets with Multiple Values

Ryan Bates ryan at railscasts.com
Thu Jun 16 18:13:29 BST 2011


Thanks peter! Joining with \x03 and then splitting the match spy
results works well for me.

Ryan

On Tue, Jun 14, 2011 at 8:38 PM, Peter Karman <peter at peknet.com> wrote:
> 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