Class DocumentSearchServiceConnector
java.lang.Object
org.exoplatform.documents.storage.jcr.search.DocumentSearchServiceConnector
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDocumentSearchServiceConnector(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 Summary
Modifier and TypeMethodDescriptionprotected Stringprotected org.exoplatform.commons.api.search.data.SearchResultbuildHit(org.json.simple.JSONObject jsonHit) protected Collection<org.exoplatform.commons.api.search.data.SearchResult>buildResult(String jsonResponse) protected StringescapeReservedCharacters(String query) protected StringgetTitleFromJsonResult(org.json.simple.JSONObject hitSource) protected LonggetUpdatedDateFromResult(org.json.simple.JSONObject hitSource) protected StringgetUrlFromJsonResult(org.json.simple.JSONObject hitSource) 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)
-
Field Details
-
SEARCH_QUERY_TERM
- See Also:
-
EXTENDED_SEARCH_QUERY_TERM
- See Also:
-
QUERY_TAG_TERM
- See Also:
-
-
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
-
getUrlFromJsonResult
-
getTitleFromJsonResult
-
escapeReservedCharacters
-
buildEscapedQueryWithAndOperator
-