Class ActivitySearchConnector

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

public class ActivitySearchConnector extends Object
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
     
    static final String
     
    static final String
    One edit allowed on the tokens of five letters or more of a longer text
    static final String
     
    static final String
    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.
    static final String
    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)
    static final String
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    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 Summary

    Modifier and Type
    Method
    Description
    List<org.exoplatform.social.core.activity.model.ActivitySearchResult>
    search(org.exoplatform.social.core.identity.model.Identity viewerIdentity, ActivitySearchFilter filter, long offset, long limit)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • SEARCH_QUERY_FILE_PATH_PARAM

      public static final String SEARCH_QUERY_FILE_PATH_PARAM
      See Also:
    • SEARCH_QUERY_TERM

      public static final String 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

      public static final String CATEGORY_IDS_QUERY
      See Also:
    • DEFAULT_SORTING_QUERY

      public static final String DEFAULT_SORTING_QUERY
      See Also:
    • SORTING_QUERY

      public static final String SORTING_QUERY
      See Also:
    • SINGLE_WORD_FUZZINESS

      public static final String 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

      public static final String 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)