Lovely. Thank you very much! Oliver

-----邮件原件-----
发件人: [email protected]
[mailto:[email protected]] 代表
Koji Sekiguchi
发送时间: 2013年6月12日 22:47
收件人: [email protected]
主题: [SPAM] Re: A Problem in Customizing DefaultSimilarity

Hi Oliver,

> My questions are:
> 
> 1.       Why are the overrided lengthNorm() (under Lucene410) or
> computeNorm() (under Lucene350) methods not called during a searching
> process?

Regardless of whether you override the method or not, Lucene framework
calls the method during index time only because length norm can be
calculated by using the number of tokens in the field, i.e. not need to call
it search time.

> 2.       How and where is fieldNorm calculated?

I think fieldNorm = lengthNorm * boost of the field. Please see Javadoc for
more detail:

http://lucene.apache.org/core/4_3_0/core/org/apache/lucene/search/similariti
es/TFIDFSimilarity.html

koji
-- 
http://soleami.com/blog/automatically-acquiring-synonym-knowledge-from-wikip
edia.html

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to