|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgov.nasa.pds.search.core.post.SolrPost
public class SolrPost
Class to manage the index used for the Search Service. Includes method to clear, update, and optimize the stored index. Currently implementations use HTTP Client connections to communicate with server. Potential future refactoring could use SolrJ to interact with client. Decision was made to use this method because SolrJ would make more sense if we were posting data incrementally throughout the indexing process. Since that functionality has been separated into distinct components, this makes more sense.
Field Summary | |
---|---|
String |
searchServiceUrl
Search Service base endpoint |
Constructor Summary | |
---|---|
SolrPost(String serviceUrl)
Solr Post constructor. |
Method Summary | |
---|---|
void |
clean()
Deletes all data from the Search Service. |
void |
optimize()
Final step in Search Service index process that optimizes the stored index. |
void |
post(String dir,
List<String> filePrefixList)
Posts data to Search Service. |
void |
postIndex(String dir,
List<String> filePrefixList)
Calls the post and optimize methods to complete a post of a list of index files to the Search Service |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public String searchServiceUrl
Constructor Detail |
---|
public SolrPost(String serviceUrl) throws SolrPostException
serviceUrl
-
SolrPostException
Method Detail |
---|
public void postIndex(String dir, List<String> filePrefixList) throws SolrPostException
dir
- filePrefixList
-
SolrPostException
public void clean() throws SolrPostException
SolrPostException
public void post(String dir, List<String> filePrefixList) throws SolrPostException
dir
- filePrefixList
-
SolrPostException
public void optimize() throws SolrPostException
SolrPostException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |