public abstract LengthNorm ( System fieldName, int numTokens ) : float | ||
fieldName | System | the name of the field /// |
numTokens | int | the total number of tokens contained in fields named /// fieldName of doc. /// |
return | float |
Matches in longer fields are less precise, so implementations of this method usually return smaller values when numTokens
is large, and larger values when numTokens
is small.
Note that the return values are computed under Lucene.Net.Index.IndexWriter.AddDocument(Lucene.Net.Documents.Document) and then stored using EncodeNorm(float). Thus they have limited precision, and documents must be re-indexed if this method is altered.
public abstract LengthNorm ( System fieldName, int numTokens ) : float | ||
fieldName | System | the name of the field /// |
numTokens | int | the total number of tokens contained in fields named /// fieldName of doc. /// |
return | float |