On Tue, Jan 22, 2008 at 11:09:10PM -0800, William Morgan wrote: > Reformatted excerpts from Marcus Williams's message of 2008-01-22: > > Note that you can use wildcards... "from:joe*" will find emails from > > joey/joe.bloggs/joel etc. > > Wow, I totally forgot about that. > > > Although it must be said I was pondering yesterday whether it was > > possible to get searches assume wildcards some how so when you > > searched for from:joe you would actually be searching for from:*joe* > > or maybe from:joe* automagically. I dug around in the ferret docs to > > see if this was possible but only came up with the fuzzy operators and > > you might as well use a wildcard instead. > > I don't recall seeing anything like this in the Ferret docs, so it's > probably not possible. What I'm thinking of doing, which will kind of > approximate this, is adding the LHS of the email address and the > sender's name to the from: field at index time, so that email from you > would match e.g. from:marcus, from:williams, and from:marcus-sup.
Using Ferret's LetterAnalyzer on the "from" and "to" fields should do this for you (i.e., create the appropriate tokens). I've stuck it in the code, but I haven't been able to make it work. Something to do with the twice-over query parsing, I think. gsf _______________________________________________ sup-talk mailing list [email protected] http://rubyforge.org/mailman/listinfo/sup-talk
