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

Olly Betts olly at survex.com
Mon Jan 9 10:17:40 GMT 2012


On Mon, Jan 09, 2012 at 08:20:42AM +0000, Richard Boulton wrote:
> 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).

Yes, and that's sounding a lot like the "FieldProcessor" idea:

http://trac.xapian.org/ticket/456

Cheers,
    Olly



More information about the Xapian-discuss mailing list