[Xapian-tickets] [Xapian] #448: Allow usage of custom stemmers
Xapian
nobody at xapian.org
Tue Apr 13 15:23:11 BST 2010
#448: Allow usage of custom stemmers
-------------------------+--------------------------------------------------
Reporter: esizikov | Owner: olly
Type: enhancement | Status: reopened
Priority: normal | Milestone: 1.2.x
Component: Library API | Version: 1.0.17
Severity: normal | Resolution:
Keywords: | Blockedby:
Platform: All | Blocking:
-------------------------+--------------------------------------------------
Comment(by esizikov):
Ah, forgot to mention issue 3:
3. {{{stem = xapian.Stem(HunspellStemmer('ru_RU'))}}} doesn't work - need
a reference counting hack like
{{{
#!python
# file: xapian-bindings/python/extra.i
# When we set a Stopper into the QueryParser, keep a python reference so
it
# won't be deleted. This hack can probably be removed once xapian bug #186
is
# fixed.
__queryparser_set_stopper_orig = QueryParser.set_stopper
def _queryparser_set_stopper(self, stopper):
self._stopper = stopper
return __queryparser_set_stopper_orig(self, stopper)
_queryparser_set_stopper.__doc__ = __queryparser_set_stopper_orig.__doc__
QueryParser.set_stopper = _queryparser_set_stopper
del _queryparser_set_stopper
}}}
--
Ticket URL: <http://trac.xapian.org/ticket/448#comment:24>
Xapian <http://xapian.org/>
Xapian
More information about the Xapian-tickets
mailing list