- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for getStopwordsFile (0.12 sec)
-
src/main/java/org/codelibs/fess/app/service/StopwordsService.java
public OptionalEntity<StopwordsFile> getStopwordsFile(final String dictId) { return dictionaryManager.getDictionaryFile(dictId).filter(StopwordsFile.class::isInstance) .map(file -> OptionalEntity.of((StopwordsFile) file)).orElse(OptionalEntity.empty()); } public OptionalEntity<StopwordsItem> getStopwordsItem(final String dictId, final long id) { return getStopwordsFile(dictId).map(file -> file.get(id).get());
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Thu Feb 22 01:53:18 UTC 2024 - 3.1K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/app/web/admin/dict/stopwords/AdminDictStopwordsAction.java
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Thu Feb 22 01:53:18 UTC 2024 - 16.7K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/app/web/api/admin/dict/stopwords/ApiAdminDictStopwordsAction.java
public JsonResponse<ApiResult> post$upload(final String dictId, final UploadForm form) { form.dictId = dictId; validateApi(form, messages -> {}); final StopwordsFile file = stopwordsService.getStopwordsFile(form.dictId).orElseGet(() -> { throwValidationErrorApi(messages -> messages.addErrorsFailedToUploadStopwordsFile(GLOBAL)); return null; });
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Thu Feb 22 01:53:18 UTC 2024 - 7.2K bytes - Viewed (0)