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<DocumentFileSearchResult> 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)
    • getTotalSize

      public long getTotalSize(org.exoplatform.services.security.Identity userIdentity, String workspace, String path)
    • getLimit

      public String getLimit(int limit)
    • buildResult

      protected Collection<DocumentFileSearchResult> buildResult(String jsonResponse)
    • buildHit

      protected DocumentFileSearchResult 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)
    • buildEscapedQueryWithAndOperator

      protected String buildEscapedQueryWithAndOperator(String term)