Re: How to boost the score higher in case user query matches entire field value than just some words within a field

2008-08-21 Thread Sean Timm
https://issues.apache.org/jira/browse/LUCENE-1360 Simon Hu wrote: I am definitely interested in trying your Similarity class. Can you please post the patch in jira? thanks -Simon Sean Timm wrote: In the example below, Doc1, and Doc2 will all have the same score for the query "chevrole

Re: How to boost the score higher in case user query matches entire field value than just some words within a field

2008-08-21 Thread Simon Hu
r you? Wouldn't it >> make more sense to just turn off norms for short fields? > > -- View this message in context: http://www.nabble.com/How-to-boost-the-score-higher-in-case-user-query-matches-entire-field-value-than-just-some-words-within-a-field-tp19079221p19094822.html Sent from the Solr - User mailing list archive at Nabble.com.

Re: How to boost the score higher in case user query matches entire field value than just some words within a field

2008-08-21 Thread Jason Rennie
Count me as interested. Our "documents" are product descriptions, many fields of which are very short. Not sure if it would make large enough of an impact to warrant us rolling our own solr build, but I'm definitely interested to see the custom Similarity class. Thanks, Jason On Thu, Aug 21, 2

Re: How to boost the score higher in case user query matches entire field value than just some words within a field

2008-08-21 Thread Alexander Ramos Jardim
ake Doc1 score higher than the other two? > > BTW, I am using solr1.2. > > thanks! > > -Simon > > -- > View this message in context: > http://www.nabble.com/How-to-boost-the-score-higher-in-case-user-query-matches-entire-field-value-than-just-some-words-within-a-

Re: How to boost the score higher in case user query matches entire field value than just some words within a field

2008-08-21 Thread Sean Timm
In the example below, Doc1, and Doc2 will all have the same score for the query "chevrolet tahoe." We would prefer Doc2 to score higher than Doc1. The score length norm for each is also 0.5f. I presume which one appears first now falls to the order they were placed in the index? By using ou

Re: How to boost the score higher in case user query matches entire field value than just some words within a field

2008-08-21 Thread Mark Miller
Sean Timm wrote: To solve this, we wrote our own Similarity class which extends DefaultSimilarity and maps numTerms 1-10 to precalculated values between 1.5f and 0.3125f. For numTerms >10, we use the standard formula above. If anyone else is interested in this, I can post the code as a patch

Re: How to boost the score higher in case user query matches entire field value than just some words within a field

2008-08-21 Thread Sean Timm
Length normalization in the Similarity class will generally favor shorter fields. For example, with the DefaultSimilarity, the length norm for a 2 term field is 0.625. For a three term field it is 0.5. The norm is multiplied by the score. I say "generally will favor" because the length norm

How to boost the score higher in case user query matches entire field value than just some words within a field

2008-08-20 Thread Simon Hu
all three documents. So how can I make Doc1 score higher than the other two? BTW, I am using solr1.2. thanks! -Simon -- View this message in context: http://www.nabble.com/How-to-boost-the-score-higher-in-case-user-query-matches-entire-field-value-than-just-some-words-within-a-field-tp1907922