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.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​(org.exoplatform.commons.api.search.data.SearchContext context, String query, List<org.exoplatform.commons.search.es.ElasticSearchFilter> filters, Collection<String> sites, int offset, int limit, String sort, String order)  
      protected String getSourceFields()  
      protected Set<String> getUserMemberships()  
      List<SearchResult> searchWiki​(String searchedText, String wikiType, String wikiOwner, int offset, int limit, String sort, String order)  
      • Methods inherited from class org.exoplatform.commons.search.es.ElasticSearchServiceConnector

        buildDetail, buildDlpQuery, buildFilteredQuery, buildHit, buildQuery, buildResult, dlpSearch, escapeReservedCharacters, filteredSearch, getAdditionalFilters, getClient, getFields, getImg, getIndex, getPermissionFilter, getPermissionFilterWiki, getSearchFields, getSitesFilter, getTitleElasticFieldName, getTitleFromJsonResult, getUpdatedDateFromResult, getUrlFromJsonResult, 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.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​(org.exoplatform.commons.api.search.data.SearchContext context,
                                                        String query,
                                                        List<org.exoplatform.commons.search.es.ElasticSearchFilter> filters,
                                                        Collection<String> sites,
                                                        int offset,
                                                        int limit,
                                                        String sort,
                                                        String order)
      • getUserMemberships

        protected Set<String> getUserMemberships()
        Overrides:
        getUserMemberships in class org.exoplatform.commons.search.es.ElasticSearchServiceConnector