Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for getStopwordsFile (0.12 sec)

  1. 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)
  2. src/main/java/org/codelibs/fess/app/web/admin/dict/stopwords/AdminDictStopwordsAction.java

                op.setup(form -> {
                    form.dictId = dictId;
                });
            }).renderWith(data -> {
                stopwordsService.getStopwordsFile(dictId).ifPresent(file -> {
                    RenderDataUtil.register(data, "path", file.getPath());
                }).orElse(() -> {
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 16.7K bytes
    - Viewed (0)
  3. 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)
Back to top