Class DocumentSearchServiceConnector

java.lang.Object
org.exoplatform.documents.storage.jcr.search.DocumentSearchServiceConnector

public class DocumentSearchServiceConnector extends Object
  • Field Details

  • Constructor Details

    • DocumentSearchServiceConnector

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

    • search

      public Collection<org.exoplatform.commons.api.search.data.SearchResult> search(org.exoplatform.services.security.Identity userIdentity, String workspace, String path, org.exoplatform.documents.model.DocumentNodeFilter filter, int offset, int limit, String sortField, String sortDirection)
    • buildResult

      protected Collection<org.exoplatform.commons.api.search.data.SearchResult> buildResult(String jsonResponse)
    • buildHit

      protected org.exoplatform.commons.api.search.data.SearchResult buildHit(org.json.simple.JSONObject jsonHit)
    • getUpdatedDateFromResult

      protected Long getUpdatedDateFromResult(org.json.simple.JSONObject hitSource)
    • getUrlFromJsonResult

      protected String getUrlFromJsonResult(org.json.simple.JSONObject hitSource)
    • getTitleFromJsonResult

      protected String getTitleFromJsonResult(org.json.simple.JSONObject hitSource)
    • escapeReservedCharacters

      protected String escapeReservedCharacters(String query)