[Xapian-discuss] Re: example of using the new OP_VALUE_RANGE in Query

Andrey Kong alpha04 at netvigator.com
Tue Jun 12 04:37:13 BST 2007


Thx for reply Olly =)

when i use range = xapian.Query(xapian.Query.OP_VALUE_RANGE, 0, '1', '4'), 
it shows the following error
NotImplementedError: Wrong number of arguments for overloaded function

i am using xapian 1.0.0 and python binding is 1.3.32
(waiting yum repo update ... =) )
Andrey


----- Original Message ----- 
From: "Olly Betts" <olly at survex.com>
Newsgroups: gmane.comp.search.xapian.general
To: "Andrey" <alpha04 at netvigator.com>
Cc: <xapian-discuss at lists.xapian.org>
Sent: Monday, June 11, 2007 6:51 PM
Subject: Re: example of using the new OP_VALUE_RANGE in Query


> On Mon, Jun 11, 2007 at 06:27:56PM -0700, Andrey wrote:
>> I wonder anyone can put an example of uisng OP_VALUE_RANGE in 
>> xapian.Query?
>>
>> such as search the term 'xapian', with attachment num 1 - 4   (attachment
>> num store in value(0) )
>
> Something like this:
>
>    query = xapian.Query('xapian')
>    range = xapian.Query(xapian.Query.OP_VALUE_RANGE, 0, '1', '4')
>    query = xapian.Query(xapian.Query.OP_FILTER, query, range)
>
>> Is the NumberValueRangeProcessor fixed in xapian 1.0.1?
>
> No, though there is at least now a warning in the documentation.
> There's a preliminary patch in bugzilla, but the encoding to use isn't
> finalised yet.
>
> Cheers,
>    Olly 




More information about the Xapian-discuss mailing list