Updated QueryParserBase class.

Added a method that checks the compatibility of the version of Lucene and the analyzer being used for search and index. We also added the call to this method in the init() function.