[Xapian-discuss] Matching substrings

Lars Kruse lists at sumpfralle.de
Fri Apr 4 22:20:06 BST 2008


Hi,

> > But I would like to construct a successful query like the following:
> >  *bar
> > 
> > Is there any way of accomplishing this with xapian?
> > As far as I understand the wildcard flag, it supports only right truncation
> > (at the end of a string).
> 
> If you can suffer increasing the size of your database a fair bit, you
> can store every term backwards as well (with a suitable prefix), so
> that *bar becomes <prefix>rab*.

thanks for this hint!
It sounds like a reasonable solution for me ...

regards,
Lars



More information about the Xapian-discuss mailing list