Method AcceptPhrase
AcceptPhrase(FieldPhraseList.WeightedPhraseInfo, Int32, Int32)
A predicate to decide if the given FieldPhraseList.WeightedPhraseInfo should be accepted as a highlighted phrase or if it should be discarded.
The default implementation discards phrases that are composed of more than one term and where the matchLength exceeds the fragment character size.
Declaration
protected virtual bool AcceptPhrase(FieldPhraseList.WeightedPhraseInfo info, int matchLength, int fragCharSize)
Parameters
Type | Name | Description |
---|---|---|
FieldPhraseList.WeightedPhraseInfo | info | the phrase info to accept |
System.Int32 | matchLength | the match length of the current phrase |
System.Int32 | fragCharSize | the configured fragment character size |
Returns
Type | Description |
---|---|
System.Boolean |
|