Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for createScript (0.11 sec)

  1. 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)
  2. 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)
  3. 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)
  4. src/main/java/org/codelibs/fess/helper/SearchLogHelper.java

                                            final Integer count = clickCountMap.get(docId);
                                            final Script script = ComponentUtil.getLanguageHelper().createScript(doc,
                                                    "ctx._source." + fessConfig.getIndexFieldClickCount() + "+=" + count.toString());
                                            final Map<String, Object> upsertMap = new HashMap<>();
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Mon Jul 22 02:07:37 UTC 2024
    - 21.7K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/fess/api/json/SearchApiManager.java

                            searchHelper.update(id, builder -> {
                                final Script script = ComponentUtil.getLanguageHelper().createScript(doc,
                                        "ctx._source." + fessConfig.getIndexFieldFavoriteCount() + "+=1");
                                builder.setScript(script);
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Sat Oct 12 01:54:46 UTC 2024
    - 50.3K bytes
    - Viewed (0)
Back to top