- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 17 for synonymFile (0.28 sec)
-
src/main/java/org/codelibs/fess/dict/synonym/SynonymFile.java
import org.codelibs.fess.util.ComponentUtil; import org.dbflute.optional.OptionalEntity; public class SynonymFile extends DictionaryFile<SynonymItem> { private static final String SYNONYM = "synonym"; List<SynonymItem> synonymItemList; public SynonymFile(final String id, final String path, final Date timestamp) { super(id, path, timestamp); } @Override
Registered: Mon Oct 28 08:04:08 UTC 2024 - Last Modified: Fri Oct 11 21:11:58 UTC 2024 - 12.5K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/dict/DictionaryManagerTest.java
final SynonymCreator synonymCreator = new SynonymCreator(); final SynonymFile synonymFile = (SynonymFile) synonymCreator.create(file1.getPath(), new Date()); dictionaryManager.store(synonymFile, file1); final DictionaryFile<? extends DictionaryItem>[] synonymFiles = dictionaryManager.getDictionaryFiles(); assertEquals(1, synonymFiles.length); } */
Registered: Mon Oct 28 08:04:08 UTC 2024 - Last Modified: Thu Feb 22 01:37:57 UTC 2024 - 2.4K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/dict/synonym/SynonymFileTest.java
final SynonymFile synonymFile = new SynonymFile(file1); final PagingList<SynonymItem> itemList1 = synonymFile.selectList(0, 20); assertEquals(5, itemList1.size()); final SynonymItem synonymItem1 = itemList1.get(0); synonymFile.delete(synonymItem1); final PagingList<SynonymItem> itemList2 = synonymFile.selectList(0, 20);
Registered: Mon Oct 28 08:04:08 UTC 2024 - Last Modified: Thu Feb 22 01:37:57 UTC 2024 - 9K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/app/service/SynonymService.java
}).orElse(Collections.emptyList()); } public OptionalEntity<SynonymFile> getSynonymFile(final String dictId) { return dictionaryManager.getDictionaryFile(dictId).filter(SynonymFile.class::isInstance) .map(file -> OptionalEntity.of((SynonymFile) file)).orElse(OptionalEntity.empty()); }
Registered: Mon Oct 28 08:04:08 UTC 2024 - Last Modified: Thu Feb 22 01:53:18 UTC 2024 - 3K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/app/web/api/admin/dict/synonym/ApiAdminDictSynonymAction.java
form.dictId = dictId; validateApi(form, messages -> {}); final SynonymFile file = synonymService.getSynonymFile(form.dictId).orElseGet(() -> { throwValidationErrorApi(messages -> messages.addErrorsFailedToUploadProtwordsFile(GLOBAL)); return null; }); try (InputStream inputStream = form.synonymFile.getInputStream()) { file.update(inputStream);
Registered: Mon Oct 28 08:04:08 UTC 2024 - Last Modified: Thu Feb 22 01:53:18 UTC 2024 - 7.1K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/dict/synonym/SynonymCreator.java
dictionaryManager.addCreator(this); } @Override protected DictionaryFile<? extends DictionaryItem> newDictionaryFile(final String id, final String path, final Date timestamp) { return new SynonymFile(id, path, timestamp).manager(dictionaryManager); }
Registered: Mon Oct 28 08:04:08 UTC 2024 - Last Modified: Thu Feb 22 01:53:18 UTC 2024 - 1.6K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/app/web/admin/dict/synonym/UploadForm.java
/** * @author shinsuke * @author Keiichi Watanabe */ public class UploadForm { @Required public String dictId; @Required public MultipartFormFile synonymFile;
Registered: Mon Oct 28 08:04:08 UTC 2024 - Last Modified: Thu Feb 22 01:37:57 UTC 2024 - 966 bytes - Viewed (0) -
src/main/java/org/codelibs/fess/dict/stopwords/StopwordsFile.java
try (SynonymUpdater updater = new SynonymUpdater(null)) { reload(updater, in); } } @Override public String toString() { return "SynonymFile [path=" + path + ", stopwordsItemList=" + stopwordsItemList + ", id=" + id + "]"; } protected class SynonymUpdater implements Closeable { protected boolean isCommit = false;
Registered: Mon Oct 28 08:04:08 UTC 2024 - Last Modified: Fri Oct 11 21:11:58 UTC 2024 - 9.6K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/app/web/admin/dict/synonym/AdminDictSynonymAction.java
verifyToken(() -> uploadpage(form.dictId)); return synonymService.getSynonymFile(form.dictId).map(file -> { try (InputStream inputStream = form.synonymFile.getInputStream()) { file.update(inputStream); } catch (final IOException e) { logger.warn("Failed to process a request.", e);
Registered: Mon Oct 28 08:04:08 UTC 2024 - Last Modified: Thu Feb 22 01:53:18 UTC 2024 - 19.5K bytes - Viewed (0) -
src/main/resources/fess_label_en.properties
labels.roleTypeIds=Role ID labels.scriptData=Script labels.scriptResult=Result labels.scriptType=Executor labels.segmentation=Segmentation labels.startTime=Start Time labels.target=Target labels.token=Token labels.synonymFile=Synonym File labels.stopwordsFile=Stopwords File labels.stemmerOverrideFile=Stemmer Override File labels.mappingFile=Mapping File labels.protwordsFile=Protwords File labels.kuromojiFile=Kuromoji File
Registered: Mon Oct 28 08:04:08 UTC 2024 - Last Modified: Fri Mar 22 11:58:34 UTC 2024 - 40.7K bytes - Viewed (0)