Class ProfileSearchConnector
java.lang.Object
org.exoplatform.social.core.jpa.search.ProfileSearchConnector
Created by The eXo Platform SAS
Author : eXoPlatform
exo@exoplatform.com
Sep 29, 2015
-
Constructor Summary
ConstructorsConstructorDescriptionProfileSearchConnector(org.exoplatform.container.xml.InitParams initParams, org.exoplatform.commons.search.es.client.ElasticSearchingClient client, org.exoplatform.social.core.profileproperty.ProfilePropertyService profilePropertyService) -
Method Summary
Modifier and TypeMethodDescriptionintcount(org.exoplatform.social.core.identity.model.Identity identity, org.exoplatform.social.core.profile.ProfileFilter filter, org.exoplatform.social.core.relationship.model.Relationship.Type type) TODO it will be remove to use "_count" querystatic StringremoveESReservedChars(String string) search(org.exoplatform.social.core.identity.model.Identity identity, org.exoplatform.social.core.profile.ProfileFilter filter, org.exoplatform.social.core.relationship.model.Relationship.Type type, long offset, long limit)
-
Constructor Details
-
ProfileSearchConnector
public ProfileSearchConnector(org.exoplatform.container.xml.InitParams initParams, org.exoplatform.commons.search.es.client.ElasticSearchingClient client, org.exoplatform.social.core.profileproperty.ProfilePropertyService profilePropertyService)
-
-
Method Details
-
search
-
count
public int count(org.exoplatform.social.core.identity.model.Identity identity, org.exoplatform.social.core.profile.ProfileFilter filter, org.exoplatform.social.core.relationship.model.Relationship.Type type) TODO it will be remove to use "_count" query- Parameters:
identity- the Identityfilter- the filtertype- type- Returns:
- number of identities
-
removeESReservedChars
-