lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Doug Cutting <cutt...@apache.org>
Subject Re: SweetSpotSimiliarity
Date Wed, 24 May 2006 18:33:26 GMT
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: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org


Mime
View raw message