Skip to content

Commit 669e632

Browse files
Bernhard ReiterBernhard Reiter
authored andcommitted
Fix search for xapian 1.2 issue2550676.
1 parent 8724fb5 commit 669e632

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

CHANGES.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ Fixed:
2929
doesn't have access to a property but can deduce the content by
3030
crafting a clever search, group or sort query.
3131
see doc/upgrading.txt for how to fix your trackers! (Ralf Schlatterbeck).
32+
- Fix search for xapian 1.2 issue2550676
33+
(Bernhard Reiter; Thanks to Olly Betts for providing the patch.)
3234
- Some minor typos fixed in doc/customizing.txt (Thanks Ralf Hemmecke).
3335
- XML-RPC documentation now linked from the docs/index (Bernhard Reiter).
3436
- Fix setting of sys.path when importing schema.py, fixes issue2550675,

roundup/backends/indexer_xapian.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,6 @@ def find(self, wordlist):
122122
enquire.set_query(query)
123123
matches = enquire.get_mset(0, 10)
124124

125-
return [tuple(m[xapian.MSET_DOCUMENT].get_data().split(':'))
125+
return [tuple(m.document.get_data().split(':'))
126126
for m in matches]
127127

0 commit comments

Comments
 (0)