Attachment 'patch-xapwrap-Xapian-1.2.diff'
Download 1 # HG changeset patch
2 # User Paul Boddie <paul@boddie.org.uk>
3 # Date 1374528272 -7200
4 # Node ID a52cd9474fc0622bffb87ffac178c8632b1d03f6
5 # Parent 289fb8a24ad84e7a5acadff54572621eb8f949a3
6 Fixed xapwrap to work around a deprecated API: http://trac.xapian.org/ticket/531
7 See also: http://xapian.org/docs/bindings/python/
8
9 diff -r 289fb8a24ad8 -r a52cd9474fc0 MoinMoin/support/xapwrap/index.py
10 --- a/MoinMoin/support/xapwrap/index.py Mon May 13 20:40:50 2013 +0200
11 +++ b/MoinMoin/support/xapwrap/index.py Mon Jul 22 23:24:32 2013 +0200
12 @@ -676,10 +676,10 @@
13 results = []
14 for m in mset:
15 thisResult = {}
16 - thisResult['uid'] = m[xapian.MSET_DID]
17 - thisResult['score'] = m[xapian.MSET_PERCENT]
18 + thisResult['uid'] = m.docid
19 + thisResult['score'] = m.percent
20 if valuesWanted:
21 - xapDoc = m[4]
22 + xapDoc = m.document
23 valRes = {}
24 for valName in valuesWanted:
25 valueIndex = self.indexValueMap.get(valName, None)
Attached Files
To refer to attachments on a page, use attachment:filename, as shown below in the list of files. Do NOT use the URL of the [get] link, since this is subject to change and can break easily.You are not allowed to attach a file to this page.