|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgov.nasa.pds.search.core.indexer.solr.SolrIndexer
public class SolrIndexer
This class creates Lucene index for ingestion into Solr. This is a remnant of the old Solr index generation from "ages" ago. Eventually this should probably be refactored and the index should be posted dynamically using SolrInputDocuments
Constructor Summary | |
---|---|
SolrIndexer()
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SolrIndexer()
Method Detail |
---|
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
method
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |