gov.nasa.pds.search.core.indexer.solr
Class DocumentParser
java.lang.Object
gov.nasa.pds.search.core.indexer.solr.DocumentParser
public class DocumentParser
- extends Object
Parses a document for text search and creates a Lucene document.
- Author:
- pramirez, jpadams
Method Summary |
static StringBuffer |
parse(File file)
Creates the document object a parses out all of the data from each
individual XML documents. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DocumentParser
public DocumentParser()
parse
public static StringBuffer parse(File file)
throws Exception
- Creates the document object a parses out all of the data from each
individual XML documents.
- Parameters:
file
- - The individual profile document for each record for the
current class.
- Returns:
- indexDoc - Lucene DOM document returned with parsed data.
- Throws:
ParseException
Exception
Copyright © 2010–2014 Planetary Data System. All rights reserved.