Method SuggestWordBreaks
SuggestWordBreaks(Term, Int32, IndexReader, SuggestMode, WordBreakSpellChecker.BreakSuggestionSortMethod)
Generate suggestions by breaking the passed-in term into multiple words. The scores returned are equal to the number of word breaks needed so a lower score is generally preferred over a higher score.
Declaration
public virtual SuggestWord[][] SuggestWordBreaks(Term term, int maxSuggestions, IndexReader ir, SuggestMode suggestMode = default(SuggestMode), WordBreakSpellChecker.BreakSuggestionSortMethod sortMethod = WordBreakSpellChecker.BreakSuggestionSortMethod.NUM_CHANGES_THEN_MAX_FREQUENCY)
Parameters
Type | Name | Description |
---|---|---|
Term | term | |
System.Int32 | maxSuggestions | |
IndexReader | ir | |
SuggestMode | suggestMode |
|
WordBreakSpellChecker.BreakSuggestionSortMethod | sortMethod |
|
Returns
Type | Description |
---|---|
SuggestWord[][] | one or more arrays of words formed by breaking up the original term |