Package edu.ucsb.nceas.metacat.admin
Class SolrVersionChecker
java.lang.Object
edu.ucsb.nceas.metacat.admin.SolrVersionChecker
This class will check if the given solr home directory is for an embedded solr server
which is used in the earlier Metacat versions. From Metacat 2.9.0, we have migrated the solr
server from embedded to http. For the new http server, we like it to have a new solr home.
This class will check if the given solr home is still the old one.
- Author:
- tao
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
isVersion_3_4
(String solrHome) Check if given the solr home is for Lucene version 3.4.
-
Constructor Details
-
SolrVersionChecker
Default constructor to initialize the parser factory.- Throws:
ParserConfigurationException
-
-
Method Details
-
isVersion_3_4
public boolean isVersion_3_4(String solrHome) throws SAXException, IOException, TransformerException Check if given the solr home is for Lucene version 3.4.- Parameters:
solrHome
- the solr home will be checked- Returns:
- true if it is for Lucene; otherwise false.
- Throws:
IOException
SAXException
TransformerException
-