Package org.exoplatform.wiki.jpa.search
Class WikiElasticSearchServiceConnector
java.lang.Object
org.exoplatform.container.component.BaseComponentPlugin
io.meeds.notes.legacy.api.search.SearchServiceConnector
io.meeds.notes.legacy.search.es.ElasticSearchServiceConnector
org.exoplatform.wiki.jpa.search.WikiElasticSearchServiceConnector
- All Implemented Interfaces:
org.exoplatform.container.component.ComponentPlugin
Created by The eXo Platform SAS Author : Thibault Clement
tclement@exoplatform.com 11/24/15
-
Field Summary
FieldsFields inherited from class io.meeds.notes.legacy.search.es.ElasticSearchServiceConnector
GROUP, HIGHLIGHT_FRAGMENT_NUMBER_DEFAULT_VALUE, HIGHLIGHT_FRAGMENT_NUMBER_PARAM_NAME, HIGHLIGHT_FRAGMENT_SIZE_DEFAULT_VALUE, HIGHLIGHT_FRAGMENT_SIZE_PARAM_NAME, WIKI_TYPEFields inherited from class org.exoplatform.container.component.BaseComponentPlugin
desc, name -
Constructor Summary
ConstructorsConstructorDescriptionWikiElasticSearchServiceConnector(org.exoplatform.container.configuration.ConfigurationManager configurationManager, org.exoplatform.container.xml.InitParams initParams, org.exoplatform.commons.search.es.client.ElasticSearchingClient client, org.exoplatform.social.core.manager.IdentityManager identityManager) -
Method Summary
Modifier and TypeMethodDescriptionprotected List<SearchResult> buildWikiResult(String jsonResponse) protected List<SearchResult> filteredWikiSearch(String query, String userId, String wikiOwner, List<String> tagNames, boolean isFavorites, boolean isNotesTreeFilter, int offset, int limit) protected StringgetUserSpaceIds(String userId, String wikiOwner) searchWiki(String searchedText, String userId, String wikiOwner, List<String> tagNames, boolean isFavorites, boolean isNotesTreeFilter, int offset, int limit) voidsetSearchQuery(String searchQuery) Methods inherited from class io.meeds.notes.legacy.search.es.ElasticSearchServiceConnector
buildDetail, buildFilteredQuery, buildHit, buildQuery, buildResult, builQueryWithEntityId, escapeReservedCharacters, filteredSearch, getAdditionalFilters, getClient, getFields, getImg, getIndex, getMetadataQuery, getPermissionFilter, getPermissionFilterWiki, getSearchFields, getSitesFilter, getTitleElasticFieldName, getTitleFromJsonResult, getUpdatedDateFromResult, getUrlFromJsonResult, getUserMemberships, isIndexed, search, searchByEntityId, setImg, setIndex, setSearchFields, setTitleElasticFieldNameMethods inherited from class io.meeds.notes.legacy.api.search.SearchServiceConnector
getDisplayName, getSearchType, isEnable, isEnabledForAnonymous, setDisplayName, setEnable, setEnabledForAnonymous, setSearchTypeMethods inherited from class org.exoplatform.container.component.BaseComponentPlugin
getDescription, getName, setDescription, setName
-
Field Details
-
SEARCH_QUERY_TERM
- See Also:
-
SEARCH_QUERY_TERM_FOR_NOTES_APPLICATION
- See Also:
-
WILDCARD_QUERY
- See Also:
-
-
Constructor Details
-
WikiElasticSearchServiceConnector
public WikiElasticSearchServiceConnector(org.exoplatform.container.configuration.ConfigurationManager configurationManager, org.exoplatform.container.xml.InitParams initParams, org.exoplatform.commons.search.es.client.ElasticSearchingClient client, org.exoplatform.social.core.manager.IdentityManager identityManager)
-
-
Method Details
-
getSourceFields
- Overrides:
getSourceFieldsin classElasticSearchServiceConnector
-
searchWiki
-
filteredWikiSearch
-
buildWikiResult
-
getUserSpaceIds
-
setSearchQuery
-