Class ProfileSearchConnector

java.lang.Object
org.exoplatform.social.core.jpa.search.ProfileSearchConnector

public class ProfileSearchConnector extends Object
Created by The eXo Platform SAS Author : eXoPlatform exo@exoplatform.com Sep 29, 2015
  • Constructor Summary

    Constructors
    Constructor
    Description
    ProfileSearchConnector(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 Type
    Method
    Description
    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
    static 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)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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

      public List<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)
    • 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 Identity
      filter - the filter
      type - type
      Returns:
      number of identities
    • removeESReservedChars

      public static String removeESReservedChars(String string)