Class 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

      All Methods Instance Methods Concrete Methods 
      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 getSourceFields()  
      protected Set<String> getUserSpaceIds​(String userId)  
      List<SearchResult> 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, buildDlpQuery, buildFilteredQuery, buildHit, buildQuery, buildResult, dlpSearch, escapeReservedCharacters, filteredSearch, getAdditionalFilters, getClient, getFields, getImg, getIndex, getMetadataQuery, getPermissionFilter, getPermissionFilterWiki, getSearchFields, getSitesFilter, getTitleElasticFieldName, getTitleFromJsonResult, getUpdatedDateFromResult, getUrlFromJsonResult, getUserMemberships, isIndexed, search, 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
    • Constructor Detail

      • 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 Detail

      • getSourceFields

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

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

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

        public void setSearchQuery​(String searchQuery)