Package com.logicaldoc.web.service
Class SearchEngineServiceImpl
java.lang.Object
jakarta.servlet.GenericServlet
jakarta.servlet.http.HttpServlet
com.google.gwt.user.server.rpc.jakarta.AbstractRemoteServiceServlet
com.google.gwt.user.server.rpc.jakarta.RemoteServiceServlet
com.logicaldoc.web.service.AbstractRemoteService
com.logicaldoc.web.service.SearchEngineServiceImpl
- All Implemented Interfaces:
- com.google.gwt.user.client.rpc.RemoteService,- com.google.gwt.user.server.rpc.SerializationPolicyProvider,- SearchEngineService,- jakarta.servlet.Servlet,- jakarta.servlet.ServletConfig,- Serializable
Implementation of the SearchEngineService
- Since:
- 6.0
- Author:
- Matteo Caruso - LogicalDOC
- See Also:
- 
Nested Class SummaryNested classes/interfaces inherited from interface com.logicaldoc.gui.frontend.client.services.SearchEngineServiceSearchEngineService.Instance
- 
Field SummaryFields inherited from class jakarta.servlet.http.HttpServletLEGACY_DO_HEAD
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptioncheck()Checks the indexerlongCounts the total number of entriesgetInfo()Loads a search engine that contains all search engine details.voidpurge()Launches the purgeExecutes a low-level query in the fulltext indexvoidRemoves a set of entries from the indexvoidreorderTokenFilters(List<String> filters) Reorders the token filters.voidrescheduleAll(boolean dropIndex) Reschedule all entries for indexingvoidsave(GUISearchEngine searchEngine) Saves search engine settingsvoidsaveTokenFilterSettings(String filter, List<GUIParameter> settings) Saves the settings of the specified token filtervoidsetAliases(String extension, String aliases) Sets the parser aliases for the given extension.voidsetLanguageStatus(String language, boolean active) Changes the activation status of a languagevoidsetTokenFilterStatus(String filter, boolean active) Changes the activation status of a token filtervoidunlock()Unlocks the indexerMethods inherited from class com.logicaldoc.web.service.AbstractRemoteServicesetThreadRequestMethods inherited from class com.google.gwt.user.server.rpc.jakarta.RemoteServiceServletgetSerializationPolicy, init, processCall, processCall, processPostMethods inherited from class com.google.gwt.user.server.rpc.jakarta.AbstractRemoteServiceServletdoPostMethods inherited from class jakarta.servlet.http.HttpServletserviceMethods inherited from class jakarta.servlet.GenericServletdestroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
- 
Constructor Details- 
SearchEngineServiceImplpublic SearchEngineServiceImpl()
 
- 
- 
Method Details- 
getInfoDescription copied from interface:SearchEngineServiceLoads a search engine that contains all search engine details.- Specified by:
- getInfoin interface- SearchEngineService
- Returns:
- details about the engine
- Throws:
- ServerException- an error happened in the server application
 
- 
rescheduleAllDescription copied from interface:SearchEngineServiceReschedule all entries for indexing- Specified by:
- rescheduleAllin interface- SearchEngineService
- Parameters:
- dropIndex- must the index be dropped also?
- Throws:
- ServerException- an error happened in the server application
 
- 
unlockDescription copied from interface:SearchEngineServiceUnlocks the indexer- Specified by:
- unlockin interface- SearchEngineService
- Throws:
- ServerException- an error happened in the server application
 
- 
checkDescription copied from interface:SearchEngineServiceChecks the indexer- Specified by:
- checkin interface- SearchEngineService
- Returns:
- check report
- Throws:
- ServerException- an error happened in the server application
 
- 
saveDescription copied from interface:SearchEngineServiceSaves search engine settings- Specified by:
- savein interface- SearchEngineService
- Parameters:
- searchEngine- the engine to update
- Throws:
- ServerException- an error happened in the server application
 
- 
setLanguageStatusDescription copied from interface:SearchEngineServiceChanges the activation status of a language- Specified by:
- setLanguageStatusin interface- SearchEngineService
- Parameters:
- language- the language to change
- active- the new active status
- Throws:
- ServerException- an error happened in the server application
 
- 
setAliasesDescription copied from interface:SearchEngineServiceSets the parser aliases for the given extension. Aliases must be a comma-separated values- Specified by:
- setAliasesin interface- SearchEngineService
- Parameters:
- extension- the file extension e.g.: xml
- aliases- comma-separated list of aliases e.g.: html,htmlx
- Throws:
- ServerException- an error happened in the server application
 
- 
countEntriesDescription copied from interface:SearchEngineServiceCounts the total number of entries- Specified by:
- countEntriesin interface- SearchEngineService
- Returns:
- number of entries in the index
- Throws:
- ServerException- an error happened in the server application
 
- 
reorderTokenFiltersDescription copied from interface:SearchEngineServiceReorders the token filters.- Specified by:
- reorderTokenFiltersin interface- SearchEngineService
- Parameters:
- filters- the ordered list of the filters
- Throws:
- ServerException- an error happened in the server application
 
- 
saveTokenFilterSettingspublic void saveTokenFilterSettings(String filter, List<GUIParameter> settings) throws ServerException Description copied from interface:SearchEngineServiceSaves the settings of the specified token filter- Specified by:
- saveTokenFilterSettingsin interface- SearchEngineService
- Parameters:
- filter- token filter
- settings- parameters
- Throws:
- ServerException- an error happened in the server application
 
- 
setTokenFilterStatusDescription copied from interface:SearchEngineServiceChanges the activation status of a token filter- Specified by:
- setTokenFilterStatusin interface- SearchEngineService
- Parameters:
- filter- the language
- active- the new activation status
- Throws:
- ServerException- an error happened in the server application
 
- 
purgeDescription copied from interface:SearchEngineServiceLaunches the purge- Specified by:
- purgein interface- SearchEngineService
- Throws:
- ServerException- an error happened in the server application
 
- 
removeDescription copied from interface:SearchEngineServiceRemoves a set of entries from the index- Specified by:
- removein interface- SearchEngineService
- Parameters:
- entryIds- identifiers of the entries to delete
- Throws:
- ServerException- an error happened in the server application
 
- 
queryDescription copied from interface:SearchEngineServiceExecutes a low-level query in the fulltext index- Specified by:
- queryin interface- SearchEngineService
- Parameters:
- query- the query to use
- page- the page to retrieve
- size- the maximum number of entries to retrieve
- Returns:
- the result
- Throws:
- ServerException- an error happened in the server application
 
 
-