public class SearchCore extends Object
Constructor and Description |
---|
SearchCore(File searchHome) |
SearchCore(File searchHome,
List<String> configHomeList) |
Modifier and Type | Method and Description |
---|---|
List<String> |
getConfigHomeList() |
File |
getExtractorOutputDir(String outDir) |
File |
prepForExtractorRun(boolean clean)
Create the output directory for the Registry Extractor data.
|
void |
runRegistryExtractor(List<String> primaryRegistries,
List<String> secondaryRegistries,
int queryMax,
boolean clean)
Runs the Registry Extractor component.
|
void |
runSolrIndexer()
Runs the SolrIndexer component.
|
void |
runSolrPost(String serviceUrl) |
void |
setConfigHomeList(List<String> configHomeList) |
public SearchCore(File searchHome)
public void runRegistryExtractor(List<String> primaryRegistries, List<String> secondaryRegistries, int queryMax, boolean clean) throws Exception
Exception
public void runSolrIndexer() throws IndexerException
IOException
org.apache.commons.cli.ParseException
Exception
IndexerException
public void runSolrPost(String serviceUrl) throws SolrPostException
SolrPostException
public File prepForExtractorRun(boolean clean) throws SearchCoreFatalException
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.ProductClassException
- thrown when directories cannot be createdSearchCoreFatalException
Copyright © 2010–2017 Planetary Data System. All rights reserved.