gov.nasa.pds.search.core
Class SearchCore
java.lang.Object
gov.nasa.pds.search.core.SearchCore
public class SearchCore
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SearchCore
public SearchCore(File searchHome)
SearchCore
public SearchCore(File searchHome,
List<String> configHomeList)
runRegistryExtractor
public void runRegistryExtractor(List<String> primaryRegistries,
List<String> secondaryRegistries,
int queryMax,
boolean clean)
throws Exception
- Runs the Registry Extractor component.
- Throws:
Exception
runSolrIndexer
public void runSolrIndexer()
throws IndexerException
- Runs the SolrIndexer component.
- Throws:
IOException
org.apache.commons.cli.ParseException
Exception
IndexerException
runSolrPost
public void runSolrPost(String serviceUrl)
throws SolrPostException
- Throws:
SolrPostException
prepForExtractorRun
public File prepForExtractorRun(boolean clean)
throws SearchCoreFatalException
- Create the output directory for the Registry Extractor data.
- Parameters:
outDir
- The base directory where the registry-data directory is
created.clean
- Boolean parameter used to determine whether or not the
previous run data should be removed. This is used in case user
decides to append to previous runs data.
- Throws:
ProductClassException
- thrown when directories cannot be created
SearchCoreFatalException
getExtractorOutputDir
public File getExtractorOutputDir(String outDir)
getConfigHomeList
public List<String> getConfigHomeList()
- Returns:
- the configHomeList
setConfigHomeList
public void setConfigHomeList(List<String> configHomeList)
- Parameters:
configHomeList
- the configHomeList to set
Copyright © 2010-2014 Planetary Data System. All Rights Reserved.