Changed LuceneDoc to an abstract class. Now using instanceof keyword instead of fields to identify Message vs Post