lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Naber <lucenelist2...@danielnaber.de>
Subject Re: Norm - please lit it up for me
Date Fri, 19 Oct 2007 19:40:32 GMT
On Friday 19 October 2007 19:07, Karl Wettin wrote:

> doc[0] <text: hello hello hello>
> doc[1] <text: hello>
>
> With normalization doc[0] and doc[1] are equally important. Omitting  
> normalization makes doc[0] (usually) three times as important as doc[1].

Not quite, as the normalization only refers to the length of the document. 
But the fact that "hello hello hello" contains the searched term three 
times makes it have a larger score no matter if normalization is set.

However, for this example, both docs have the same score with
f.setOmitNorms(true) when searching for "hello":

doc[0] <text: hello foo foo>
doc[1] <text: hello>

Regards
 Daniel

-- 
http://www.danielnaber.de

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message