Class ActivitySearchConnector
java.lang.Object
org.exoplatform.social.core.jpa.search.ActivitySearchConnector
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final StringOne edit allowed on the tokens of five letters or more of a longer textstatic final Stringstatic final StringTerm query of the searched text, analyzed by each field's own analyzer so that the tokens searched are the ones the index holds: every token is required and the last one, the one being typed, is a prefix (bool_prefix); one edit is allowed on a token of two letters or more when the text is one word (SINGLE_WORD_FUZZINESS), of five letters or more otherwise (MULTI_WORD_FUZZINESS); the whole text as a phrase, with one position of slop, is boosted.static final StringOne edit allowed on each token of a one-word text, from two letters: a single letter is matched exactly (and as a prefix when it ends the text)static final String -
Constructor Summary
ConstructorsConstructorDescriptionActivitySearchConnector(ActivitySearchProcessor activitySearchProcessor, org.exoplatform.social.core.manager.IdentityManager identityManager, org.exoplatform.social.core.storage.api.ActivityStorage activityStorage, org.exoplatform.container.configuration.ConfigurationManager configurationManager, org.exoplatform.commons.search.es.client.ElasticSearchingClient client, org.exoplatform.container.xml.InitParams initParams) -
Method Summary
Modifier and TypeMethodDescriptionList<org.exoplatform.social.core.activity.model.ActivitySearchResult> search(org.exoplatform.social.core.identity.model.Identity viewerIdentity, ActivitySearchFilter filter, long offset, long limit)
-
Field Details
-
SEARCH_QUERY_FILE_PATH_PARAM
- See Also:
-
SEARCH_QUERY_TERM
Term query of the searched text, analyzed by each field's own analyzer so that the tokens searched are the ones the index holds: every token is required and the last one, the one being typed, is a prefix (bool_prefix); one edit is allowed on a token of two letters or more when the text is one word (SINGLE_WORD_FUZZINESS), of five letters or more otherwise (MULTI_WORD_FUZZINESS); the whole text as a phrase, with one position of slop, is boosted. A text with no token matches nothing. The text is written in a JSON string only, so no character of it is query syntax.- See Also:
-
CATEGORY_IDS_QUERY
- See Also:
-
DEFAULT_SORTING_QUERY
- See Also:
-
SORTING_QUERY
- See Also:
-
SINGLE_WORD_FUZZINESS
One edit allowed on each token of a one-word text, from two letters: a single letter is matched exactly (and as a prefix when it ends the text)- See Also:
-
MULTI_WORD_FUZZINESS
One edit allowed on the tokens of five letters or more of a longer text- See Also:
-
-
Constructor Details
-
ActivitySearchConnector
public ActivitySearchConnector(ActivitySearchProcessor activitySearchProcessor, org.exoplatform.social.core.manager.IdentityManager identityManager, org.exoplatform.social.core.storage.api.ActivityStorage activityStorage, org.exoplatform.container.configuration.ConfigurationManager configurationManager, org.exoplatform.commons.search.es.client.ElasticSearchingClient client, org.exoplatform.container.xml.InitParams initParams)
-
-
Method Details
-
search
public List<org.exoplatform.social.core.activity.model.ActivitySearchResult> search(org.exoplatform.social.core.identity.model.Identity viewerIdentity, ActivitySearchFilter filter, long offset, long limit)
-