[Xapian-tickets] [Xapian] #448: Allow usage of custom stemmers
Xapian
nobody at xapian.org
Sun Feb 14 13:23:48 GMT 2010
#448: Allow usage of custom stemmers
-------------------------+--------------------------------------------------
Reporter: esizikov | Owner: olly
Type: enhancement | Status: closed
Priority: normal | Milestone:
Component: Other | Version:
Severity: normal | Resolution: duplicate
Keywords: | Blockedby:
Platform: All | Blocking:
-------------------------+--------------------------------------------------
Changes (by olly):
* status: new => closed
* resolution: => duplicate
Comment:
I'm afraid your patches won't actually work!
First problem is that you need to make operator() virtual too (and ideally
get_description()).
However, Xapian::Stem (like many Xapian API classes) is just a wrapper
around a reference counted pointer. So although with your patches you can
now subclass Xapian::Stem in Python, when you pass an instance of the
subclass to Xapian API functions, your Python stemming code won't actually
get called, even if you make the operator() virtual.
This is all already covered by #186, so closing this ticket as a
duplicate.
--
Ticket URL: <http://trac.xapian.org/ticket/448#comment:2>
Xapian <http://xapian.org/>
Xapian
More information about the Xapian-tickets
mailing list