Package org.codelibs.fess.app.service
Class StopwordsService
java.lang.Object
org.codelibs.fess.app.service.StopwordsService
Service for managing stopwords.
This class provides methods to interact with stopwords dictionaries,
including retrieving, storing, and deleting stopwords.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected DictionaryManagerThe dictionary manager for accessing dictionary files.protected org.codelibs.fess.mylasta.direction.FessConfigThe Fess configuration for accessing system settings. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddelete(String dictId, StopwordsItem stopwordsItem) Deletes a stopword item from the specified dictionary.org.dbflute.optional.OptionalEntity<StopwordsFile> getStopwordsFile(String dictId) Retrieves a stopwords file for a given dictionary ID.org.dbflute.optional.OptionalEntity<StopwordsItem> getStopwordsItem(String dictId, long id) Retrieves a specific stopword item by its ID.getStopwordsList(String dictId, StopwordsPager stopwordsPager) Retrieves a list of stopwords for a given dictionary and pager.voidstore(String dictId, StopwordsItem stopwordsItem) Stores a stopword item in the specified dictionary.
-
Field Details
-
dictionaryManager
The dictionary manager for accessing dictionary files. -
fessConfig
protected org.codelibs.fess.mylasta.direction.FessConfig fessConfigThe Fess configuration for accessing system settings.
-
-
Constructor Details
-
StopwordsService
public StopwordsService()Constructs a new stopwords service.
-
-
Method Details
-
getStopwordsList
Retrieves a list of stopwords for a given dictionary and pager.- Parameters:
dictId- The ID of the dictionary.stopwordsPager- The pager for controlling pagination.- Returns:
- A list of stopwords.
-
getStopwordsFile
Retrieves a stopwords file for a given dictionary ID.- Parameters:
dictId- The ID of the dictionary.- Returns:
- An optional entity containing the stopwords file, or empty if not found.
-
getStopwordsItem
Retrieves a specific stopword item by its ID.- Parameters:
dictId- The ID of the dictionary.id- The ID of the stopword item.- Returns:
- An optional entity containing the stopword item, or empty if not found.
-
store
Stores a stopword item in the specified dictionary.- Parameters:
dictId- The ID of the dictionary.stopwordsItem- The stopword item to store.
-
delete
Deletes a stopword item from the specified dictionary.- Parameters:
dictId- The ID of the dictionary.stopwordsItem- The stopword item to delete.
-