Class WikiElasticSearchServiceConnector

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.WikiElasticSearchServiceConnector
All Implemented Interfaces:
org.exoplatform.container.component.ComponentPlugin

public class WikiElasticSearchServiceConnector extends org.exoplatform.commons.search.es.ElasticSearchServiceConnector
Created by The eXo Platform SAS Author : Thibault Clement tclement@exoplatform.com 11/24/15
  • Field Summary

    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
    WikiElasticSearchServiceConnector(org.exoplatform.container.configuration.ConfigurationManager configurationManager, org.exoplatform.container.xml.InitParams initParams, org.exoplatform.commons.search.es.client.ElasticSearchingClient client, org.exoplatform.social.core.manager.IdentityManager identityManager)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected List<SearchResult>
    buildWikiResult(String jsonResponse)
     
    protected List<SearchResult>
    filteredWikiSearch(String query, String userId, boolean isFavorites, int offset, int limit)
     
    protected String
     
    protected Set<String>
     
    searchWiki(String searchedText, String userId, boolean isFavorites, int offset, int limit)
     
    void
    setSearchQuery(String searchQuery)
     

    Methods inherited from class org.exoplatform.commons.search.es.ElasticSearchServiceConnector

    buildDetail, buildFilteredQuery, buildHit, buildQuery, buildResult, builQueryWithEntityId, escapeReservedCharacters, filteredSearch, getAdditionalFilters, getClient, getFields, getImg, getIndex, getMetadataQuery, getPermissionFilter, getPermissionFilterWiki, getSearchFields, getSitesFilter, getTitleElasticFieldName, getTitleFromJsonResult, getUpdatedDateFromResult, getUrlFromJsonResult, 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
  • Constructor Details

    • WikiElasticSearchServiceConnector

      public WikiElasticSearchServiceConnector(org.exoplatform.container.configuration.ConfigurationManager configurationManager, org.exoplatform.container.xml.InitParams initParams, org.exoplatform.commons.search.es.client.ElasticSearchingClient client, org.exoplatform.social.core.manager.IdentityManager identityManager)
  • Method Details

    • getSourceFields

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

      public List<SearchResult> searchWiki(String searchedText, String userId, boolean isFavorites, int offset, int limit)
    • filteredWikiSearch

      protected List<SearchResult> filteredWikiSearch(String query, String userId, boolean isFavorites, int offset, int limit)
    • buildWikiResult

      protected List<SearchResult> buildWikiResult(String jsonResponse)
    • getUserSpaceIds

      protected Set<String> getUserSpaceIds(String userId)
    • setSearchQuery

      public void setSearchQuery(String searchQuery)