Class WordBreakSolrSpellChecker

java.lang.Object
org.apache.solr.spelling.SolrSpellChecker
org.apache.solr.spelling.WordBreakSolrSpellChecker

public class WordBreakSolrSpellChecker extends SolrSpellChecker
A spellchecker that breaks and combines words.

This will not combine adjacent tokens that do not have the same required status (prohibited, required, optional). However, this feature depends on incoming term flags being properly set. (QueryConverter.PROHIBITED_TERM_FLAG, QueryConverter.REQUIRED_TERM_FLAG, QueryConverter.TERM_IN_BOOLEAN_QUERY_FLAG, and QueryConverter.TERM_PRECEDES_NEW_BOOLEAN_OPERATOR_FLAG ) This feature breaks completely if the upstream analyzer or query converter sets flags with the same values but different meanings. The default query converter (if not using "spellcheck.q") is SpellingQueryConverter, which properly sets these flags.