[Xapian-discuss] custom ValueRangeProcessor in Perl?

Eric Wong e at 80x24.org
Wed Sep 30 00:03:06 BST 2015


Eric Wong <e at 80x24.org> wrote:
> Unfortunately, I'm not sure if it's possible with the
> add_valuerangeprocessor API via Perl.

Ping?

<snip>

> I suppose I can workaround this by parsing the query string myself by
> translating the dates with DateTimeX::Easy to Unix epochs which are
> compatible with timestamp value field in my database for use with
> NumericValueRangeProcessor.
> 
> Reading the source to sup (Ruby Xapian mail client[1]), it seems to do
> this workaround (using the Chronic date parsing library).

It looks like I'll need do this myself in Perl, too.

> [1] - sup: git clone git://github.com/sup-heliotrope/sup.git



More information about the Xapian-discuss mailing list