public interface SiteSearchService
<component> <key>org.exoplatform.services.wcm.search.SiteSearchService</key> <type>org.exoplatform.services.wcm.search.SiteSearchServiceImpl</type> <component-plugins> ... </component-plugins> <init-params> <value-param> <name>isEnabledFuzzySearch</name> <value>true</value> </value-param> <value-param> <name>fuzzySearchIndex</name> <value/> </value-param> </init-params> </component>
Modifier and Type | Field and Description |
---|---|
static String |
PAGE_MODE_MORE |
static String |
PAGE_MODE_NONE |
static String |
PAGE_MODE_PAGINATION |
static String |
PATH_PORTAL_SITES |
Modifier and Type | Method and Description |
---|---|
void |
addExcludeIncludeDataTypePlugin(org.exoplatform.services.wcm.search.ExcludeIncludeDataTypePlugin plugin)
Adds the exclude/include data type plugin.
|
void |
clearCache(String userId,
String queryStatement) |
Map<Integer,Integer> |
getDropNodes(String userId,
String queryStatement)
Gets map containing list of dropped nodes
|
Map<?,Integer> |
getFoundNodes(String userId,
String queryStatement)
Gets map containing list of found nodes
|
org.exoplatform.services.wcm.search.base.AbstractPageList<org.exoplatform.services.wcm.search.ResultNode> |
searchPageContents(SessionProvider sessionProvider,
org.exoplatform.services.wcm.search.QueryCriteria queryCriteria,
int pageSize,
boolean isSearchContent)
Searches for pages.
|
org.exoplatform.services.wcm.search.base.AbstractPageList<org.exoplatform.services.wcm.search.ResultNode> |
searchSiteContents(SessionProvider sessionProvider,
org.exoplatform.services.wcm.search.QueryCriteria queryCriteria,
int pageSize,
boolean isSearchContent)
Searches for content nodes of a site.
|
static final String PAGE_MODE_NONE
static final String PAGE_MODE_MORE
static final String PAGE_MODE_PAGINATION
static final String PATH_PORTAL_SITES
void addExcludeIncludeDataTypePlugin(org.exoplatform.services.wcm.search.ExcludeIncludeDataTypePlugin plugin)
plugin
- The plugin to be added.org.exoplatform.services.wcm.search.base.AbstractPageList<org.exoplatform.services.wcm.search.ResultNode> searchSiteContents(SessionProvider sessionProvider, org.exoplatform.services.wcm.search.QueryCriteria queryCriteria, int pageSize, boolean isSearchContent) throws Exception
QueryCriteria
. With this parameter, you only set
5 properties:sessionProvider
- The session provider.queryCriteria
- The query criteria.pageSize
- The page size.isSearchContent
- If "true", search is performed by content. If "false", search is performed by page.Exception
- The exceptionorg.exoplatform.services.wcm.search.base.AbstractPageList<org.exoplatform.services.wcm.search.ResultNode> searchPageContents(SessionProvider sessionProvider, org.exoplatform.services.wcm.search.QueryCriteria queryCriteria, int pageSize, boolean isSearchContent) throws Exception
sessionProvider
- The session provider.queryCriteria
- The query criteria.pageSize
- The page size.Exception
- The exceptionMap<?,Integer> getFoundNodes(String userId, String queryStatement)
userId
- user namequeryStatement
- the query statementMap<Integer,Integer> getDropNodes(String userId, String queryStatement)
userId
- user namequeryStatement
- the query statementCopyright © 2003-2017 eXo Platform SAS. All Rights Reserved.