Class SpaceSearchConnector
java.lang.Object
io.meeds.social.search.SpaceSearchConnector
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final StringThe property ofconstructor.paramsholding the contributed ids' boost.static final doubleThe contributed ids' boost when none is configured or the value is invalid.static final Stringstatic final Stringstatic final doubleThe largest boost accepted for contributed ids.static final doubleThe smallest boost accepted for contributed ids.static final StringOne edit allowed on the tokens of five letters or more of a longer textstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic 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 Stringstatic final Stringstatic final String -
Constructor Summary
ConstructorsConstructorDescriptionSpaceSearchConnector(org.exoplatform.container.configuration.ConfigurationManager configurationManager, org.exoplatform.commons.search.es.client.ElasticSearchingClient client, org.exoplatform.container.xml.InitParams initParams) Reads the index, the search and count query templates, whether the connector is enabled and the contributed ids' boost from the connector's init params. -
Method Summary
Modifier and TypeMethodDescriptionintcount(SpaceSearchFilter filter) search(SpaceSearchFilter filter, long offset, long limit)
-
Field Details
-
PERMISSION_FIELD_REDACTOR
- See Also:
-
PERMISSION_FIELD_PUBLISHER
- See Also:
-
PERMISSION_FIELD_INVITED
- See Also:
-
PERMISSION_FIELD_PENDING
- See Also:
-
PERMISSION_FIELD_MANAGER
- See Also:
-
PERMISSION_FIELD_MEMBER
- See Also:
-
SEARCH_QUERY_FILE_PATH_PARAM
- See Also:
-
SEARCH_COUNT_FILE_PATH_PARAM
- See Also:
-
CONTRIBUTED_BOOST_PROPERTY
The property ofconstructor.paramsholding the contributed ids' boost.- See Also:
-
DEFAULT_CONTRIBUTED_BOOST
public static final double DEFAULT_CONTRIBUTED_BOOSTThe contributed ids' boost when none is configured or the value is invalid.- See Also:
-
MIN_CONTRIBUTED_BOOST
public static final double MIN_CONTRIBUTED_BOOSTThe smallest boost accepted for contributed ids.- See Also:
-
MAX_CONTRIBUTED_BOOST
public static final double MAX_CONTRIBUTED_BOOSTThe largest boost accepted for contributed ids.- See Also:
-
PERMISSIONS_QUERY
- See Also:
-
TEMPLATE_IDS_QUERY
- See Also:
-
CATEGORY_INCLUDE_EXCLUDE_QUERY
- See Also:
-
CATEGORY_IDS_QUERY
- See Also:
-
EXCLUDE_CATEGORY_IDS_QUERY
- See Also:
-
VISIBILITY_QUERY
- See Also:
-
REGISTRATION_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
-
SpaceSearchConnector
public SpaceSearchConnector(org.exoplatform.container.configuration.ConfigurationManager configurationManager, org.exoplatform.commons.search.es.client.ElasticSearchingClient client, org.exoplatform.container.xml.InitParams initParams) Reads the index, the search and count query templates, whether the connector is enabled and the contributed ids' boost from the connector's init params.- Parameters:
configurationManager- reads the query templatesclient- the search index clientinitParams-constructor.params(index,enabled, "contributedBoost") and the two template paths
-
-
Method Details
-
search
-
count
-