public class DocumentSearchServiceConnector extends BaseContentSearchServiceConnector
excluded_nodetypesDEFAULT_SITENAME, documentService, driveService_, NONE_NAGVIGATION, PAGE_NAGVIGATION, PORTLET_NAME, siteSearch_, sortByDate, sortByRelevancy, sortByTitle| Constructor and Description |
|---|
DocumentSearchServiceConnector(org.exoplatform.container.xml.InitParams initParams) |
| Modifier and Type | Method and Description |
|---|---|
protected ResultNode |
filterNode(ResultNode node)
filters the node base on search type: document or file
|
protected String[] |
getNodeTypes()
returns the primary types of the specific search service:
nt:file for file search, null for document search
|
protected String |
getPath(ResultNode node,
org.exoplatform.commons.api.search.data.SearchContext context)
returns path of node in format: "{drivename}/{relative path from drive root node}
|
protected String |
getPreviewUrl(ResultNode node,
org.exoplatform.commons.api.search.data.SearchContext context)
returns the preview url
|
protected String[] |
getSearchedDocTypes()
returns the primary types of the specific search service:
nt:file for file search, all other document types for document search
|
createQueryCriteria, getDetails, getFileType, getImageUrl, getTitleResult, searchNodesconvertResult, fileSize, formatDate, getDate, getDriveTitle, removeAccents, searchgetDisplayName, getSearchType, isEnable, setDisplayName, setEnable, setSearchTypeprotected String[] getSearchedDocTypes()
getSearchedDocTypes in class BaseContentSearchServiceConnectorprotected String[] getNodeTypes()
BaseContentSearchServiceConnectorgetNodeTypes in class BaseContentSearchServiceConnectorprotected ResultNode filterNode(ResultNode node) throws javax.jcr.RepositoryException
filterNode in class BaseSearchServiceConnectorjavax.jcr.RepositoryExceptionprotected String getPath(ResultNode node, org.exoplatform.commons.api.search.data.SearchContext context) throws Exception
getPath in class BaseSearchServiceConnectornode - the nodejavax.jcr.RepositoryExceptionExceptionprotected String getPreviewUrl(ResultNode node, org.exoplatform.commons.api.search.data.SearchContext context) throws Exception
BaseSearchServiceConnectorgetPreviewUrl in class BaseSearchServiceConnectornode - the nodeExceptionCopyright © 2003–2019 eXo Platform SAS. All rights reserved.