Package org.exoplatform.wiki.jpa.search
Class WikiElasticUnifiedSearchServiceConnector
java.lang.Object
org.exoplatform.container.component.BaseComponentPlugin
org.exoplatform.commons.api.search.SearchServiceConnector
org.exoplatform.commons.search.es.ElasticSearchServiceConnector
org.exoplatform.wiki.jpa.search.WikiElasticUnifiedSearchServiceConnector
- All Implemented Interfaces:
org.exoplatform.container.component.ComponentPlugin
public class WikiElasticUnifiedSearchServiceConnector
extends org.exoplatform.commons.search.es.ElasticSearchServiceConnector
Created by The eXo Platform SAS
Author : Thibault Clement
tclement@exoplatform.com
2/15/16
-
Field Summary
FieldsFields inherited from class org.exoplatform.commons.search.es.ElasticSearchServiceConnector
GROUP, HIGHLIGHT_FRAGMENT_NUMBER_DEFAULT_VALUE, HIGHLIGHT_FRAGMENT_NUMBER_PARAM_NAME, HIGHLIGHT_FRAGMENT_SIZE_DEFAULT_VALUE, HIGHLIGHT_FRAGMENT_SIZE_PARAM_NAME, WIKI_TYPEFields inherited from class org.exoplatform.container.component.BaseComponentPlugin
desc, name -
Constructor Summary
ConstructorsConstructorDescriptionWikiElasticUnifiedSearchServiceConnector(org.exoplatform.container.xml.InitParams initParams, org.exoplatform.commons.search.es.client.ElasticSearchingClient client, WikiService wikiService) -
Method Summary
Modifier and TypeMethodDescriptionprotected StringbuildDetail(org.json.simple.JSONObject jsonHit, org.exoplatform.commons.api.search.data.SearchContext searchContext) protected Stringprotected StringgetUrlFromJsonResult(org.json.simple.JSONObject hitSource, org.exoplatform.commons.api.search.data.SearchContext context) Methods inherited from class org.exoplatform.commons.search.es.ElasticSearchServiceConnector
buildFilteredQuery, buildHit, buildQuery, buildResult, builQueryWithEntityId, escapeReservedCharacters, filteredSearch, getAdditionalFilters, getClient, getFields, getImg, getIndex, getMetadataQuery, getPermissionFilter, getPermissionFilterWiki, getSearchFields, getSitesFilter, getTitleElasticFieldName, getTitleFromJsonResult, getUpdatedDateFromResult, getUserMemberships, isIndexed, search, searchByEntityId, setImg, setIndex, setSearchFields, setTitleElasticFieldNameMethods inherited from class org.exoplatform.commons.api.search.SearchServiceConnector
getDisplayName, getSearchType, isEnable, isEnabledForAnonymous, setDisplayName, setEnable, setEnabledForAnonymous, setSearchTypeMethods inherited from class org.exoplatform.container.component.BaseComponentPlugin
getDescription, getName, setDescription, setName
-
Field Details
-
DATE_TIME_FORMAT
-
DATE_FORMATTER
-
-
Constructor Details
-
WikiElasticUnifiedSearchServiceConnector
public WikiElasticUnifiedSearchServiceConnector(org.exoplatform.container.xml.InitParams initParams, org.exoplatform.commons.search.es.client.ElasticSearchingClient client, WikiService wikiService)
-
-
Method Details
-
getSourceFields
- Overrides:
getSourceFieldsin classorg.exoplatform.commons.search.es.ElasticSearchServiceConnector
-
getUrlFromJsonResult
protected String getUrlFromJsonResult(org.json.simple.JSONObject hitSource, org.exoplatform.commons.api.search.data.SearchContext context) - Overrides:
getUrlFromJsonResultin classorg.exoplatform.commons.search.es.ElasticSearchServiceConnector
-
buildDetail
protected String buildDetail(org.json.simple.JSONObject jsonHit, org.exoplatform.commons.api.search.data.SearchContext searchContext) - Overrides:
buildDetailin classorg.exoplatform.commons.search.es.ElasticSearchServiceConnector
-