TokenBudgetPolicy
- Namespace
- Rowles.LeanLucene.Analysis
- Assembly
- Rowles.LeanLucene.dll
Determines what happens when a document exceeds MaxTokensPerDocument.
public enum TokenBudgetPolicy
Fields
Reject = 2Throw an TokenBudgetExceededException to reject the document.
Truncate = 0Silently discard tokens beyond the limit.
Warn = 1Log a warning and continue indexing with all tokens.