public class SolrIndexer extends Object
Constructor and Description |
---|
SolrIndexer() |
Modifier and Type | Method and Description |
---|---|
static void |
indexDocs(File file)
Recursive algorithm to traverse directories for files, parse them,
and append them to the current Solr Index.
|
static void |
main(String[] args)
Current set up is similar to a CLI
|
static void |
write(String doc)
Add the index document to the solr index and determine if it has met the
document threshold for the current Solr Index file.
|
public static void main(String[] args) throws IndexerException
args
- IOException
Exception
IndexerException
public static void indexDocs(File file) throws IOException, Exception
file
- IOException
Exception
public static void write(String doc) throws IOException
doc
- String of the document object created in the indexDocs
methodIOException
Copyright © 2010–2015 Planetary Data System. All rights reserved.