+1 there is a good example in BlendedTermsQuery though