|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.exoplatform.container.component.BaseComponentPlugin
org.exoplatform.commons.api.search.SearchServiceConnector
public abstract class SearchServiceConnector
Is extended by all SearchService connectors, and allows to build configuration needed by a list of connectors that is used for the Unified Search.
| Field Summary |
|---|
| Fields inherited from class org.exoplatform.container.component.BaseComponentPlugin |
|---|
desc, name |
| Constructor Summary | |
|---|---|
SearchServiceConnector(org.exoplatform.container.xml.InitParams initParams)
Initializes a search service connector. |
|
| Method Summary | |
|---|---|
String |
getDisplayName()
Gets a display name. |
String |
getSearchType()
Gets a search type. |
abstract Collection<SearchResult> |
search(SearchContext context,
String query,
Collection<String> sites,
int offset,
int limit,
String sort,
String order)
Returns a collection of search results from the connectors. |
void |
setDisplayName(String displayName)
Sets a display name. |
void |
setSearchType(String searchType)
Sets a search type. |
| Methods inherited from class org.exoplatform.container.component.BaseComponentPlugin |
|---|
getDescription, getName, setDescription, setName |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SearchServiceConnector(org.exoplatform.container.xml.InitParams initParams)
initParams - The parameters which are used for initializing the search service connector from configuration.| Method Detail |
|---|
public String getSearchType()
public void setSearchType(String searchType)
searchType - The search type to be set.public String getDisplayName()
public void setDisplayName(String displayName)
displayName - The display name to be set.
public abstract Collection<SearchResult> search(SearchContext context,
String query,
Collection<String> sites,
int offset,
int limit,
String sort,
String order)
context - The search context.query - The query statement.sites - Specified sites where the search is performed (for example Acme, or Intranet).offset - The start point from which the search results are returned.limit - The limitation number of search results.sort - The sorting criteria (title, relevancy and date).order - The sorting order (ascending and descending).
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||