gov.nasa.pds.search.core.indexer.solr
Class SolrIndexer

java.lang.Object
  extended by gov.nasa.pds.search.core.indexer.solr.SolrIndexer

public class SolrIndexer
extends Object

This class creates Lucene index for ingestion into Solr

Author:
pramirez, jpadams

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

SolrIndexer

public SolrIndexer()
Method Detail

main

public static void main(String[] args)
                 throws IndexerException
Current set up is similar to a CLI

Parameters:
args -
Throws:
IOException
Exception
IndexerException

indexDocs

public static void indexDocs(File file)
                      throws IOException,
                             Exception
Recursive algorithm to traverse directories for files, parse them, and append them to the current Solr Index.

Parameters:
file -
Throws:
IOException
Exception

write

public static void write(String doc)
                  throws IOException
Add the index document to the solr index and determine if it has met the document threshold for the current Solr Index file.

Parameters:
doc - String of the document object created in the indexDocs method
Throws:
IOException


Copyright © 2010-2013 Planetary Data System. All Rights Reserved.