Class ActivitySearchPlugin
java.lang.Object
org.exoplatform.container.component.BaseComponentPlugin
org.exoplatform.social.core.jpa.search.ActivitySearchPlugin
- All Implemented Interfaces:
org.exoplatform.container.component.ComponentPlugin
public abstract class ActivitySearchPlugin
extends org.exoplatform.container.component.BaseComponentPlugin
-
Field Summary
Fields inherited from class org.exoplatform.container.component.BaseComponentPlugin
desc, name -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidformatSearchResult(org.exoplatform.social.core.activity.model.ActivitySearchResult activity) This is triggered before displaying search result of an activity to enrich or alter an attribute in the resultabstract Stringvoidindex(org.exoplatform.social.core.activity.model.ExoSocialActivity activity, org.exoplatform.commons.search.domain.Document document) This is triggered before indexing an activity to enrich or alter an attribute to indexMethods inherited from class org.exoplatform.container.component.BaseComponentPlugin
getDescription, getName, setDescription, setName
-
Constructor Details
-
ActivitySearchPlugin
public ActivitySearchPlugin()
-
-
Method Details
-
getActivityType
-
index
public void index(org.exoplatform.social.core.activity.model.ExoSocialActivity activity, org.exoplatform.commons.search.domain.Document document) This is triggered before indexing an activity to enrich or alter an attribute to index- Parameters:
activity-ExoSocialActivitythat will be indexeddocument-Documentcontaining properties to index
-
formatSearchResult
public void formatSearchResult(org.exoplatform.social.core.activity.model.ActivitySearchResult activity) This is triggered before displaying search result of an activity to enrich or alter an attribute in the result- Parameters:
activity-ActivitySearchResultthat will be indexed
-