|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface SearchService
Provides a search interface
| Field Summary | |
|---|---|
static String |
DATE_STAMP
|
static String |
EVENT_SEARCH
|
static String |
EVENT_SEARCH_REF
|
static String |
EVENT_TRIGGER_INDEX_RELOAD
event to trigger a reload of the search index by query nodes |
static String |
EVENT_TRIGGER_SEARCH
event to trigger an update of the index sent from Search Service to index builders |
static String |
FIELD_CONTAINER
Search Field the container of the entity |
static String |
FIELD_CONTENTS
Search Field (term vector, not full contents) The contents of the Entity Note the contents of the docuement are not stored in the index so the EntityContentProducer getContent method should be
called to retrieve the content |
static String |
FIELD_DIGEST_COUNT
|
static String |
FIELD_ID
Search Field The Sakai id of the entity |
static String |
FIELD_REFERENCE
Search field The reference of the entity |
static String |
FIELD_SITEID
Search Index Field the site id of the entity ( where is was produced) |
static String |
FIELD_SUBTYPE
Search Field The tool subtype of the entity |
static String |
FIELD_TITLE
Search Field The title of the entity |
static String |
FIELD_TOOL
Search Field The Name of the Tool that owns the entity |
static String |
FIELD_TYPE
Search Field The tool type of the entity |
static String |
FIELD_URL
Search Index Field the url to the entity |
static String |
REST_CHECKSUM
|
static String |
REST_CONTEXTS
|
static String |
REST_END
|
static String |
REST_START
|
static String |
REST_TERMS
|
static String |
REST_USERID
|
| Method Summary | |
|---|---|
void |
forceReload()
Force a reload regardless of if the index has changed |
List<SearchBuilderItem> |
getAllSearchItems()
get all the search items in the index (must be a lazy load list) |
String |
getDigestStoragePath()
Get the storage location for Digested content. |
List<SearchBuilderItem> |
getGlobalMasterSearchItems()
get the global master items |
int |
getNDocs()
get the number of documents in the search index |
int |
getPendingDocs()
get the number of pending documents in the search index |
SearchStatus |
getSearchStatus()
Get the status of the search engine |
String |
getSearchSuggestion(String searchString)
Get a suggestion for spelling errors etc |
List |
getSegmentInfo()
|
List<SearchBuilderItem> |
getSiteMasterSearchItems()
get the master itemf to sthe site |
String |
getStatus()
get the status of the search service |
TermFrequency |
getTerms(int documentId)
get the term vector for this document, where document is the |
boolean |
isEnabled()
|
boolean |
isSearchServer()
SRCH-96 whether the current server is of search server or not |
void |
rebuildInstance()
trigger a rebuild of the whole index |
void |
rebuildSite(String currentSiteId)
rebuild the current site only |
void |
refreshInstance()
Trigger an refresh of the whole index |
void |
refreshSite(String currentSiteId)
Refresh the current site only |
void |
registerFunction(String function)
Adds a function for the SearchService to respond to and route to the index builder. |
void |
reload()
When reload is called, the index should be reloaded |
boolean |
removeWorkerLock()
force the removal of the worker lock |
SearchList |
search(String searchTerms,
List<String> contexts,
int searchStart,
int searchEnd)
Perform a search, return results in a list. |
SearchList |
search(String searchTerms,
List<String> contexts,
int start,
int end,
String filterName,
String sorterName)
This is the same as standard search, but the caller can specify, by name, the index Filter and the index Sorter by name The Sorter and the Filter will be consulted during the search, and hence should not make massive demands on the framework, otherwise they will cripple the search performance |
String |
searchXML(Map parameterMap)
generates a block of XML representing the search results |
| Methods inherited from interface org.sakaiproject.search.api.Diagnosable |
|---|
disableDiagnostics, enableDiagnostics, hasDiagnostics |
| Field Detail |
|---|
static final String REST_USERID
static final String REST_TERMS
static final String REST_CHECKSUM
static final String REST_CONTEXTS
static final String REST_START
static final String REST_END
static final String EVENT_TRIGGER_SEARCH
static final String EVENT_TRIGGER_INDEX_RELOAD
static final String EVENT_SEARCH
static final String EVENT_SEARCH_REF
static final String FIELD_SITEID
static final String FIELD_URL
static final String FIELD_TOOL
static final String FIELD_TITLE
static final String FIELD_CONTENTS
EntityContentProducer getContent method should be
called to retrieve the content
static final String FIELD_SUBTYPE
static final String FIELD_TYPE
static final String FIELD_ID
static final String FIELD_CONTAINER
static final String FIELD_REFERENCE
static final String FIELD_DIGEST_COUNT
static final String DATE_STAMP
| Method Detail |
|---|
SearchList search(String searchTerms,
List<String> contexts,
int searchStart,
int searchEnd)
throws InvalidSearchQueryException
searchTerms - the search termscontexts - a list of contexts in which to perform the searchsearchEnd - searchStart -
InvalidSearchQueryException - if unable to parse the query
SearchList search(String searchTerms,
List<String> contexts,
int start,
int end,
String filterName,
String sorterName)
throws InvalidSearchQueryException
searchTerms - A search stringcontexts - A list of contextsstart - starting fromend - ending atfilterName - a lucene filtersorterName - a lucene sorter
InvalidSearchQueryException - if unable to parse the queryvoid registerFunction(String function)
function - void reload()
void refreshInstance()
void rebuildInstance()
void refreshSite(String currentSiteId)
currentSiteId - void rebuildSite(String currentSiteId)
currentSiteId - String getStatus()
int getNDocs()
int getPendingDocs()
List<SearchBuilderItem> getAllSearchItems()
List<SearchBuilderItem> getSiteMasterSearchItems()
List<SearchBuilderItem> getGlobalMasterSearchItems()
SearchStatus getSearchStatus()
boolean removeWorkerLock()
List getSegmentInfo()
void forceReload()
TermFrequency getTerms(int documentId)
throws IOException
documentId -
IOExceptionString searchXML(Map parameterMap)
parameterMap -
boolean isEnabled()
String getDigestStoragePath()
String getSearchSuggestion(String searchString)
searchString -
boolean isSearchServer()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||