code: public QueryParser getForClass(Class<? extends SolrDataQuery> clazz) {
  
  		QueryParser queryParser = cache.get(clazz);
  		if (queryParser == null) {
  			for (QueryParserPair pair : parserPairs) {
  				if (pair.canParser(clazz)) {
  					this.cache.put(clazz, pair.getParser());
  					queryParser = pair.getParser();
  					break;
  				}
  			}
  		}
  
  		return queryParser != null ? queryParser : defaultQueryParser;
  	}
docs: Get the {@link QueryParser} for given query type
  
  @param clazz
  @return {@link DefaultQueryParser} if no matching parser found