private bool AppendWords(string words, bool is_line)
{
if (IsFrozen || string.IsNullOrEmpty (words))
return true;
/* FIXME: Disable hottext for now. Enable it when LuceneCommon starts using it for query.
if (IsHot) {
hotPool.Add (words);
hotPool.Add (WHITESPACE);
}
*/
ReallyAddText (words);
if (is_line) {
text_builder.Append (NEWLINE);
last_was_structural_break = true;
} else
text_builder.Append (WHITESPACE);
if (snippetWriter != null) {
snippetWriter.Write (words);
if (is_line) {
snippetWriter.WriteLine ();
} else {
snippetWriter.Write (WHITESPACE);
}
}
return UpdateCharsAdded (words.Length + 1);
}