19 using Lucene.Net.Analysis.Payloads;
20 using Lucene.Net.Index;
22 namespace Lucene.Net.Analysis.Shingle.Codec
51 throw new IOException(
"Unknown matrix positioning of token " + token);
69 public override float GetWeight(
Token token)
82 public override void SetWeight(
Token token,
float weight)
84 token.
Payload = weight == 1f ? null :
new Payload(PayloadHelper.EncodeFloat(weight));