[Xapian-tickets] [Xapian] #503: Add Python PostingSource example from Xappy to docs
Xapian
nobody at xapian.org
Sun May 29 07:36:35 BST 2011
#503: Add Python PostingSource example from Xappy to docs
--------------------------------------+-------------------------------------
Reporter: jcassee | Owner: olly
Type: enhancement | Status: assigned
Priority: normal | Milestone: 1.2.6
Component: Xapian-bindings (Python) | Version: 1.2.2
Severity: normal | Keywords:
Blockedby: | Platform: All
Blocking: |
--------------------------------------+-------------------------------------
Changes (by olly):
* owner: richard => olly
* status: new => assigned
Comment:
Works for me if I fill in a suitable class for wtsource:
{{{
#!python
class WeightSource:
def __init__(self):
pass
def get_maxweight(self):
return 1234.;
def get_weight(self, doc):
return doc.get_docid()
}}}
I wonder if eugene_beast fail to supply a suitable class there. Anyway,
the example does work.
I'm going to try to slot this in now.
--
Ticket URL: <http://trac.xapian.org/ticket/503#comment:9>
Xapian <http://xapian.org/>
Xapian
More information about the Xapian-tickets
mailing list