if(xmlQueryParserFactoryClassName == null) {
//Use the default
return new CorePlusExtensionsParser(defaultField,analyzer);
}
//Use a user-defined parser (classname passed in -xmlQueryParserFactory command-line parameter
XmlQueryParserFactory parserFactory=(XmlQueryParserFactory) Class.forName(xmlQueryParserFactoryClassName).newInstance();
return parserFactory.createParser(defaultField,analyzer);
}