public interface IndexSearch
| Modifier and Type | Method and Description |
|---|---|
void |
closeIndex()
Closes the previously opened index
|
URI |
executeCqlQuery(ArrayList<String> presentable,
ArrayList<String> searchable,
String queryString,
boolean isComplete,
RRadaptor adaptor)
Fills the RSClient with results from executing the queryString on an
index (Lucene only).
|
URI |
executeQuery(String queryString,
boolean isComplete)
Fills the RSClient with results from executing the queryString on an
index (Lucene only).
|
void |
openIndex(String indexDir,
String indexName)
Opens the index for search operations
|
void |
setIndexType(FullTextIndexType idxType)
Updates the IndexSearch' state object
|
void |
updateIndex()
Updates the index.
|
void openIndex(String indexDir, String indexName) throws IndexException
indexDir - the base directory where indices are storedindexName - name of the indexIndexException - -
an error opening the indexvoid updateIndex()
throws IndexException
IndexException - -
an error updating the indexvoid closeIndex()
throws IndexException
IndexException - -
an error closing the indexvoid setIndexType(FullTextIndexType idxType) throws IndexException
IndexException - -
an error setting the IndexTypeURI executeQuery(String queryString, boolean isComplete) throws IndexException
Setting client to null will print results to system.out.
queryString - executed query stringisComplete - indicates if the results must contain the full payloadIndexException - -
an error executing the queryURI executeCqlQuery(ArrayList<String> presentable, ArrayList<String> searchable, String queryString, boolean isComplete, RRadaptor adaptor) throws Exception
Setting client to null will print results to system.out.
presentable - the field Names of the fields that are presentable in this indexsearchable - the field Names of the fields that are searchable in this indexqueryString - executed query stringisComplete - indicates if the results must contain the full payloadIndexException - -
an error executing the queryExceptionCopyright © 2014. All Rights Reserved.