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

    Fields
    Modifier and Type
    Field
    Description
     
    static String
     

    Fields 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_TYPE

    Fields inherited from class org.exoplatform.container.component.BaseComponentPlugin

    desc, name
  • Constructor Summary

    Constructors
    Constructor
    Description
    WikiElasticUnifiedSearchServiceConnector(org.exoplatform.container.xml.InitParams initParams, org.exoplatform.commons.search.es.client.ElasticSearchingClient client, WikiService wikiService)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected String
    buildDetail(org.json.simple.JSONObject jsonHit, org.exoplatform.commons.api.search.data.SearchContext searchContext)
     
    protected String
     
    protected String
    getUrlFromJsonResult(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, setTitleElasticFieldName

    Methods inherited from class org.exoplatform.commons.api.search.SearchServiceConnector

    getDisplayName, getSearchType, isEnable, isEnabledForAnonymous, setDisplayName, setEnable, setEnabledForAnonymous, setSearchType

    Methods inherited from class org.exoplatform.container.component.BaseComponentPlugin

    getDescription, getName, setDescription, setName

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • DATE_TIME_FORMAT

      public static String DATE_TIME_FORMAT
    • DATE_FORMATTER

      public static DateTimeFormatter 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

      protected String getSourceFields()
      Overrides:
      getSourceFields in class org.exoplatform.commons.search.es.ElasticSearchServiceConnector
    • getUrlFromJsonResult

      protected String getUrlFromJsonResult(org.json.simple.JSONObject hitSource, org.exoplatform.commons.api.search.data.SearchContext context)
      Overrides:
      getUrlFromJsonResult in class org.exoplatform.commons.search.es.ElasticSearchServiceConnector
    • buildDetail

      protected String buildDetail(org.json.simple.JSONObject jsonHit, org.exoplatform.commons.api.search.data.SearchContext searchContext)
      Overrides:
      buildDetail in class org.exoplatform.commons.search.es.ElasticSearchServiceConnector