org.exoplatform.commons.api.search
Class SearchServiceConnector
java.lang.Object
org.exoplatform.container.component.BaseComponentPlugin
org.exoplatform.commons.api.search.SearchServiceConnector
- All Implemented Interfaces:
- org.exoplatform.container.component.ComponentPlugin
public abstract class SearchServiceConnector
- extends org.exoplatform.container.component.BaseComponentPlugin
This abstract class is extended by the SearchService connectors which provide search result for a specific content type
Created by The eXo Platform SAS
Author : Tung Vu Minh
tungvm@exoplatform.com
Nov 21, 2012
| Fields inherited from class org.exoplatform.container.component.BaseComponentPlugin |
desc, name |
| 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 |
SearchServiceConnector
public SearchServiceConnector(org.exoplatform.container.xml.InitParams initParams)
getSearchType
public String getSearchType()
setSearchType
public void setSearchType(String searchType)
getDisplayName
public String getDisplayName()
setDisplayName
public void setDisplayName(String displayName)
search
public 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
- Parameters:
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)
- Returns:
- a collection of SearchResult
Copyright © 2013 eXo Platform SAS. All Rights Reserved.