Re: Custom PhraseQuery

2010-07-09 Thread Chris Hostetter
: It sounds like all I need to do is actually override tf(float) in the : SweetSpotSimilarity class to delegate to baselineTF just like tf(int) does. : Is this correct? you have to decide how you want to map the float->int (ie: round, truncate, etc...) but otherwise: yes that should work fine.

Re: Custom PhraseQuery

2010-07-09 Thread Blargy
: http://lucene.472066.n3.nabble.com/Custom-PhraseQuery-tp932414p955257.html Sent from the Solr - User mailing list archive at Nabble.com.

Re: Custom PhraseQuery

2010-07-09 Thread Chris Hostetter
: Query: "foo bar" : Doc1: "foo bar baz" : Doc2: "foo bar foo bar" : : These two documents should be scored exactly the same. I accomplished the : above in the "normal" query use-case by using the SweetSpotSimilarity class. You can change this by subclassing SweetSpotSimilarity (or any Similarit

Custom PhraseQuery

2010-06-29 Thread Blargy
class is there? Thanks -- View this message in context: http://lucene.472066.n3.nabble.com/Custom-PhraseQuery-tp932414p932414.html Sent from the Solr - User mailing list archive at Nabble.com.