- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for createScript (0.1 sec)
-
src/test/java/org/codelibs/fess/helper/LanguageHelperTest.java
Map<String, Object> doc = new HashMap<>(); assertEquals("aaa", languageHelper.createScript(doc, "aaa").getIdOrCode()); doc.put("lang", "ja"); assertEquals("aaa;ctx._source.title_ja=ctx._source.title;ctx._source.content_ja=ctx._source.content", languageHelper.createScript(doc, "aaa").getIdOrCode()); } public void test_getReindexScriptSource() { assertEquals(
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Thu Feb 22 01:37:57 UTC 2024 - 1.7K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/job/UpdateLabelJob.java
if (StringUtil.isNotBlank(url)) { final Set<String> labelSet = labelTypeHelper.getMatchedLabelValueSet(url); final Script script = languageHelper.createScript(doc, "ctx._source." + fessConfig.getIndexFieldLabel() + "=new String[]{" + labelSet.stream().map(s -> "\"" + s + "\"").collect(Collectors.joining(",")) + "}");
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Thu Feb 22 01:37:57 UTC 2024 - 3.5K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/helper/LanguageHelper.java
} } return null; } public void setDetector(final LanguageDetector detector) { this.detector = detector; } public Script createScript(final Map<String, Object> doc, final String code) { final StringBuilder buf = new StringBuilder(100); buf.append(code); final FessConfig fessConfig = ComponentUtil.getFessConfig();
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Thu Feb 22 01:53:18 UTC 2024 - 5.5K bytes - Viewed (0)