Hello,

Norms can be long, see
org.apache.lucene.search.similarities.TFIDFSimilarity.encodeNormValue(float)
  /** Encodes a normalization factor for storage in an index. */
  public abstract long encodeNormValue(float f);

On Sun, Oct 4, 2015 at 6:39 AM, Ivan Provalov <[email protected]>
wrote:

> When does this 4.0-ALPHA feature going to be included in the released
> version?
> https://issues.apache.org/jira/browse/LUCENE-3687
> It's the "Allow similarity to encode norms other than a single byte".
>
> I thought that it would be in the released versions, but it looks like
> it's only on 4.0-alpha.  I am using 4.6.1, but also looked in 5.3.1 source,
> none of these include the changes.
>
> With these changes, the new API in the sim class is accepting the norms,
> like so: computeNorm(FieldInvertState state, Norm norm).
>
> Thank you,
>
> Ivan Provalov
>



-- 
Sincerely yours
Mikhail Khludnev
Principal Engineer,
Grid Dynamics

<http://www.griddynamics.com>
<[email protected]>

Reply via email to