public abstract class BaseContentSearchServiceConnector extends BaseSearchServiceConnector
| Modifier and Type | Field and Description |
|---|---|
static List<String> |
excluded_nodetypes |
DEFAULT_SITENAME, documentService, driveService_, NONE_NAGVIGATION, PAGE_NAGVIGATION, PORTLET_NAME, siteSearch_, sortByDate, sortByRelevancy, sortByTitle| Constructor and Description |
|---|
BaseContentSearchServiceConnector(org.exoplatform.container.xml.InitParams initParams) |
| Modifier and Type | Method and Description |
|---|---|
protected QueryCriteria |
createQueryCriteria(String query,
long offset,
long limit,
String sort,
String order)
creates the QueryCriteria object based on the search service
|
protected String |
getDetails(ResultNode retNode,
org.exoplatform.commons.api.search.data.SearchContext context)
gets the detail about result node
|
protected String |
getFileType(ResultNode node)
gets the file type
|
protected String |
getImageUrl(javax.jcr.Node node)
gets the image url
|
protected abstract String[] |
getNodeTypes()
returns the primary types of the specific search service:
nt:file for file search, null for document search
|
protected abstract String[] |
getSearchedDocTypes()
returns the primary types of the specific search service:
nt:file for file search, all other document types for document search
|
protected String |
getTitleResult(ResultNode node)
gets the title of result, based on the result type
|
protected AbstractPageList<ResultNode> |
searchNodes(QueryCriteria criteria,
org.exoplatform.commons.api.search.data.SearchContext context)
searches base on the search service type
|
convertResult, fileSize, filterNode, formatDate, getDate, getDriveTitle, getPath, getPreviewUrl, removeAccents, searchgetDisplayName, getSearchType, isEnable, setDisplayName, setEnable, setSearchTypeprotected QueryCriteria createQueryCriteria(String query, long offset, long limit, String sort, String order)
createQueryCriteria in class BaseSearchServiceConnectorquery - the query stringoffset - the offsetlimit - the limitsort - sort fieldorder - order byprotected AbstractPageList<ResultNode> searchNodes(QueryCriteria criteria, org.exoplatform.commons.api.search.data.SearchContext context) throws Exception
searchNodes in class BaseSearchServiceConnectorcriteria - the query criteriaExceptionprotected String getFileType(ResultNode node) throws Exception
BaseSearchServiceConnectorgetFileType in class BaseSearchServiceConnectorExceptionprotected abstract String[] getSearchedDocTypes()
protected abstract String[] getNodeTypes()
protected String getTitleResult(ResultNode node) throws Exception
getTitleResult in class BaseSearchServiceConnectorExceptionprotected String getImageUrl(javax.jcr.Node node)
getImageUrl in class BaseSearchServiceConnectorprotected String getDetails(ResultNode retNode, org.exoplatform.commons.api.search.data.SearchContext context) throws Exception
getDetails in class BaseSearchServiceConnectorretNode - the nodeExceptionCopyright © 2003–2019 eXo Platform SAS. All rights reserved.