|
||||||||||
| 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
This abstract class is extended by all SearchService connectors, it allow to build from configuration the list of the needed connector 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)
Constructor is default that other connecters must implement by this way |
|
| Method Summary | |
|---|---|
String |
getDisplayName()
Get display name |
String |
getSearchType()
Get search type |
abstract Collection<SearchResult> |
search(SearchContext context,
String query,
Collection<String> sites,
int offset,
int limit,
String sort,
String order)
The connectors must implement this search method, with the following parameters and return a collection of SearchResult |
void |
setDisplayName(String displayName)
Set display name |
void |
setSearchType(String searchType)
Set 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 - parameters are initialized from configuration| Method Detail |
|---|
public String getSearchType()
public void setSearchType(String searchType)
searchType - public String getDisplayName()
public void setDisplayName(String displayName)
displayName -
public abstract Collection<SearchResult> search(SearchContext context,
String query,
Collection<String> sites,
int offset,
int limit,
String sort,
String order)
context - Search contextquery - The user-input query to search forsites - Search on these specified sites only (e.g acme, intranet...)offset - Start offset of the result setlimit - Maximum size of the result setsort - The field to sort the result setorder - Sort order (ASC, DESC)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||