[Xapian-discuss] Python segmentation fault when abstracting value range processor
Simon Roe
simon.roe at talusdesign.co.uk
Wed Mar 4 11:55:05 GMT 2009
On Wed, Mar 4, 2009 at 11:31 AM, James Aylett <james-xapian at tartarus.org> wrote:
> On Wed, Mar 04, 2009 at 11:15:06AM +0000, Simon Roe wrote:
>
> vrps = []
>> for k,v in values().items():
>> print k,v
>> vrp = xapian.NumberValueRangeProcessor(k,v)
>> q.add_valuerangeprocessor(vrp)
> vrps.append(vrp)
> return (q, vrps)
>
> Or use Olly's suggestion, and put the vrps on the QueryParser object
> (you'll have to do it manually, but it should still work).
Thanks Olly and James, this works fine now :) It's not ideal, but that's ok!
--
Help save the economy:
http://seriouschange.org.uk/
E: simon.roe at talusdesign.co.uk
M: 07742079314
More information about the Xapian-discuss
mailing list