public class FileSearchServiceConnector
extends org.exoplatform.commons.search.es.ElasticSearchServiceConnector
| Constructor and Description |
|---|
FileSearchServiceConnector(org.exoplatform.container.xml.InitParams initParams,
org.exoplatform.commons.search.es.client.ElasticSearchingClient client,
org.exoplatform.services.jcr.RepositoryService repositoryService,
DocumentService documentService) |
| Modifier and Type | Method and Description |
|---|---|
protected org.exoplatform.commons.api.search.data.SearchResult |
buildHit(org.json.simple.JSONObject jsonHit,
org.exoplatform.commons.api.search.data.SearchContext searchContext) |
protected Map<String,List<String>> |
getBreadcrumb(String nodePath)
Build the breadcrumb of the file.
|
protected String |
getFormattedDate(long createdDateTime,
String lang) |
protected String |
getFormattedFileSize(String fileSize) |
protected String |
getImageUrl(String workspace,
String nodePath) |
protected String |
getPreviewUrl(org.json.simple.JSONObject jsonHit,
org.exoplatform.commons.api.search.data.SearchContext context) |
protected String |
getSourceFields() |
protected String |
getUrl(String nodePath) |
buildDetail, buildFilteredQuery, buildQuery, buildResult, escapeReservedCharacters, filteredSearch, getAdditionalFilters, getClient, getFields, getImg, getIndex, getPermissionFilter, getSearchFields, getSitesFilter, getTitleElasticFieldName, getTitleFromJsonResult, getType, getUpdatedDateFromResult, getUrlFromJsonResult, search, setImg, setIndex, setSearchFields, setTitleElasticFieldName, setTypegetDisplayName, getSearchType, isEnable, setDisplayName, setEnable, setSearchTypepublic FileSearchServiceConnector(org.exoplatform.container.xml.InitParams initParams,
org.exoplatform.commons.search.es.client.ElasticSearchingClient client,
org.exoplatform.services.jcr.RepositoryService repositoryService,
DocumentService documentService)
protected String getSourceFields()
getSourceFields in class org.exoplatform.commons.search.es.ElasticSearchServiceConnectorprotected org.exoplatform.commons.api.search.data.SearchResult buildHit(org.json.simple.JSONObject jsonHit,
org.exoplatform.commons.api.search.data.SearchContext searchContext)
buildHit in class org.exoplatform.commons.search.es.ElasticSearchServiceConnectorprotected String getPreviewUrl(org.json.simple.JSONObject jsonHit, org.exoplatform.commons.api.search.data.SearchContext context)
Copyright © 2003–2019 eXo Platform SAS. All rights reserved.