Chris Hostetter wrote:
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.
Might it work to instead change Searcher.getSimilarity to take a Query or field parameter? Then one could add Searcher.setSimilarity(String field) method?
Doug --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]