diff -urN xapian-bindings-1.0.17.orig/python/extra.i xapian-bindings-1.0.17/python/extra.i
old
|
new
|
|
737 | 737 | TermGenerator.set_stopper = _termgenerator_set_stopper |
738 | 738 | del _termgenerator_set_stopper |
739 | 739 | |
| 740 | # When we set a Stem into the QueryParser, keep a python reference so it |
| 741 | # won't be deleted. This hack can probably be removed once xapian bug #186 is |
| 742 | # fixed. |
| 743 | __queryparser_set_stemmer_orig = QueryParser.set_stemmer |
| 744 | def _queryparser_set_stemmer(self, stem): |
| 745 | self._stem = stem |
| 746 | return __queryparser_set_stemmer_orig(self, stem) |
| 747 | _queryparser_set_stemmer.__doc__ = __queryparser_set_stemmer_orig.__doc__ |
| 748 | QueryParser.set_stemmer = _queryparser_set_stemmer |
| 749 | del _queryparser_set_stemmer |
| 750 | |
| 751 | # When we set a Stem into the TermGenerator, keep a python reference so it |
| 752 | # won't be deleted. This hack can probably be removed once xapian bug #186 is |
| 753 | # fixed. |
| 754 | __termgenerator_set_stemmer_orig = TermGenerator.set_stemmer |
| 755 | def _termgenerator_set_stemmer(self, stem): |
| 756 | self._stem = stem |
| 757 | return __termgenerator_set_stemmer_orig(self, stem) |
| 758 | _termgenerator_set_stemmer.__doc__ = __termgenerator_set_stemmer_orig.__doc__ |
| 759 | TermGenerator.set_stemmer = _termgenerator_set_stemmer |
| 760 | del _termgenerator_set_stemmer |
| 761 | |
740 | 762 | def _enquire_check_deprec_args(reverse, kwargs, methodname): |
741 | 763 | """Check the keyword arguments to one of the enquire set_sort_* methods. |
742 | 764 | |
diff -urN xapian-bindings-1.0.17.orig/xapian.i xapian-bindings-1.0.17/xapian.i
old
|
new
|
|
901 | 901 | |
902 | 902 | } |
903 | 903 | |
| 904 | %feature("director") Xapian::Stem; |
904 | 905 | %feature("director") Xapian::Stopper; |
905 | 906 | %feature("director") Xapian::ValueRangeProcessor; |
906 | 907 | %ignore Xapian::QueryParser::internal; |