: > ...but good lord if that isn't a pain. : : There's no reason you have to copy this everywhere. You could use a : regular, non-anonymous subclass of TermQuery and use that everywhere, : no? QueryParser should probably have a getTermQuery() method that can : be overridden to support this kind of thing...
certianly .. but it's not just TermQueries right ... PhraseQueries, SpanQueries .. lots of things use tf -- and even things like WildCardQuery would need to be subclasses, so when they rewrite to a collection of TermQueries, they propogate the information about what Similarity to use. -Hoss --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]