lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Hostetter <hossman_luc...@fucit.org>
Subject Re: Same score for different length matches
Date Fri, 30 Jun 2017 17:30:37 GMT

: we have multiple documents that are matches for the query in question
: ("name:hubwagen"). Thing is, some of the documents only contain the
: query, while others match 100% in the "name" field:
	...
: 5.9861565 = (MATCH) weight(name:hubwag in 8093) [DefaultSimilarity],
: result of:
:  5.9861565 = fieldWeight in 8093, product of:
:  1.0 = tf(freq=1.0), with freq of:
:  1.0 = termFreq=1.0
:  5.9861565 = idf(docFreq=109, maxDocs=16101)
:  1.0 = fieldNorm(doc=8093)
	...
: 5.9861565 = (MATCH) weight(name:hubwag in 9537) [DefaultSimilarity],
: result of:
:  5.9861565 = fieldWeight in 9537, product of:
:  1.0 = tf(freq=1.0), with freq of:
:  1.0 = termFreq=1.0
:  5.9861565 = idf(docFreq=109, maxDocs=16101)
:  1.0 = fieldNorm(doc=9537)
	...
: that a higher match length would rank higher. As far as I can read in
: the SolrRelevancyFAQ, the correct term is "lengthNorm". However, I a
: missing a preference for the full match.

lengthNorm is a Similarity concept that rolls into the "fieldNorm" at 
index time.

According to your score explanations, the fieldNorm is 1.0 for both docs, 
suggestion that you have norms disabled -- see the omitNorms option on the 
fieldType for your "name" field.  


-Hoss
http://www.lucidworks.com/

Mime
View raw message