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
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.
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
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-
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
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
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
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