[Xapian-discuss] Python segmentation fault when abstracting value range processor

James Aylett james-xapian at tartarus.org
Wed Mar 4 11:31:22 GMT 2009


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).

J

-- 
  James Aylett

  talktorex.co.uk - xapian.org - uncertaintydivision.org



More information about the Xapian-discuss mailing list