Frank John Bruzzaniti
2009-Feb-04 03:59 UTC
[Xapian-discuss] wildcard support (left truncation)
Dose Xapian support wildcards (left truncation)? E.g. *ildcard.doc or *.doc or Wild*.doc I read a post from Olly in 2005 that said it wasn't supported yet, I was wonder if there had been any progress or easy work around since. I mainly need when users want to search by the filename extension. Thanks, Frank
On Wed, Feb 04, 2009 at 02:29:36PM +1030, Frank John Bruzzaniti wrote:> Dose Xapian support wildcards (left truncation)? > > E.g. *ildcard.doc or *.doc or Wild*.doc > > I read a post from Olly in 2005 that said it wasn't supported yet, I was > wonder if there had been any progress or easy work around since.I don't believe so.> I mainly need when users want to search by the filename extension.Why not index that with a separate prefix? J -- James Aylett talktorex.co.uk - xapian.org - uncertaintydivision.org
Please keep messages on-list to ensure everyone can help and benefits. On Wed, Feb 04, 2009 at 09:21:51PM +1030, Frank J Bruzzaniti wrote:> >>I mainly need when users want to search by the filename extension. > >Why not index that with a separate prefix? > > Sorry I didn't understand what you meant by "index with a separate prefix"I assume you're using omindex and omega. Have a look at <http://xapian.org/docs/omega/termprefixes.html>, which explains how Omega manages terms under the hood. You'd need modifications to omindex to get this to work; alternatively, you could use scriptindex <http://xapian.org/docs/omega/scriptindex.html>. J -- James Aylett talktorex.co.uk - xapian.org - uncertaintydivision.org