I'm not sure how to accomplish what you're asking, but have you considered using a synonyms file? This would also allow you to catch ostensibly unrelated name substitutes such as Robert -> Bob and Richard -> Dick.
On Wed, Jul 20, 2011 at 10:57 AM, Jamie Johnson <jej2...@gmail.com> wrote: > I have a query which starts out with something like name:"john", I > need to expand this to something like name:("john" "johnny"). I've > implemented a custom tokenzier which gets close, but isn't quite right > it outputs name:"john johnny". Is there a simple example of doing > what I'm attempting? >