Project

General

Profile

« Previous | Next » 

Revision 7782

Added by Jing Tao about 11 years ago

If solr is not enabled, it would not be running.

View differences:

MetacatIndexServlet.java
67 67
        //System.out.println("++++++++++++++++++++++++------------------- start the servlet");
68 68
    	
69 69
    	initializeSharedConfiguration(config);
70
    	/*boolean isSolrEnabled = true;
70
    	boolean isSolrEnabled = true;
71 71
    	try {
72 72
    	   isSolrEnabled = EnabledQueryEngines.getInstance().isEnabled(EnabledQueryEngines.SOLRENGINE);
73 73
    	} catch (Exception e) {
74
    	    throw new ServletException(e.getMessage());
74
    	    throw new ServletException("MetacatIndexServlet.init - Metacat-index can't read the enabled query engine list from metacat.properties :"+e.getMessage());
75 75
    	}
76 76
    	//if the solr query engine is disabled, we stop here.
77 77
    	if(!isSolrEnabled) {
78 78
    	    return;
79
    	}*/
79
    	}
80 80
    	// initialize the application using the configured application-context
81 81
        URL url = getClass().getResource("/index-processor-context.xml");
82 82
        //System.out.println("the url is "+url);

Also available in: Unified diff