[Xapian-discuss] Enhance synonyms feature of the query parser (patch included)

Richard Boulton richard at tartarus.org
Mon Jan 9 08:20:42 GMT 2012


On 9 January 2012 04:31, Olly Betts <olly at survex.com> wrote:
> I think what's probably needed is a way to say "instead of looking up
> the synonyms for this term, look them up for that term instead", via
> a functor object which gets passed a term to synonym and can return a
> different term to look up instead, or something like that.

Or indeed, just a functor which performs the synonym operation (and
may choose to use Database.synonyms_begin() etc. to get the synonyms
from the database, but may also use other sources of synonyms).

-- 
Richard



More information about the Xapian-discuss mailing list