public class SolrIndexer
extends java.lang.Object
Constructor and Description |
---|
SolrIndexer() |
Modifier and Type | Method and Description |
---|---|
static void |
indexDocs(java.io.File file)
Recursive algorithm to traverse directories for files, parse them,
and append them to the current Solr Index.
|
static void |
main(java.lang.String[] args)
Current set up is similar to a CLI
|
static void |
write(java.lang.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(java.lang.String[] args) throws IndexerException
args
- java.io.IOException
java.lang.Exception
IndexerException
public static void indexDocs(java.io.File file) throws java.io.IOException, java.lang.Exception
file
- java.io.IOException
java.lang.Exception
public static void write(java.lang.String doc) throws java.io.IOException
doc
- String of the document object created in the indexDocs
methodjava.io.IOException
Copyright © 2010-2018 Planetary Data System. All Rights Reserved.