org.exoplatform.commons.api.search
Class SearchService
java.lang.Object
org.exoplatform.commons.api.search.SearchService
public abstract class SearchService
- extends Object
Created by The eXo Platform SAS
Author : Tung Vu Minh
tungvm@exoplatform.com
Nov 21, 2012
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SearchService
public SearchService()
getConnectors
public LinkedList<SearchServiceConnector> getConnectors()
addConnector
public void addConnector(SearchServiceConnector connector)
search
public abstract Map<String,Collection<SearchResult>> search(SearchContext context,
String query,
Collection<String> sites,
Collection<String> types,
int offset,
int limit,
String sort,
String order)
- This search method aggregates search results from all connectors
- Parameters:
context - Search contextquery - The user-input query to search forsites - Search on these specified sites only (e.g acme, intranet...)types - Search for these specified content types only (e.g people, discussion, event, task, wiki, activity, social, file, document...)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 map of connector with their search result
Copyright © 2013 eXo Platform SAS. All Rights Reserved.