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 SearchResultbuildHit(org.json.simple.JSONObject jsonHit) protected Collection<SearchResult>buildResult(String jsonResponse) protected StringescapeReservedCharacters(String query) getLimit(int limit) protected StringgetTitleFromJsonResult(org.json.simple.JSONObject hitSource) longgetTotalSize(org.exoplatform.services.security.Identity userIdentity, String workspace, String path) protected LonggetUpdatedDateFromResult(org.json.simple.JSONObject hitSource) protected StringgetUrlFromJsonResult(org.json.simple.JSONObject hitSource) 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<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) -
getTotalSize
-
getLimit
-
buildResult
-
buildHit
-
getUpdatedDateFromResult
-
getUrlFromJsonResult
-
getTitleFromJsonResult
-
escapeReservedCharacters
-
buildEscapedQueryWithAndOperator
-