Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for getScriptEngine (0.15 sec)

  1. src/main/java/org/codelibs/fess/indexer/DocBoostMatcher.java

            if (map == null || map.isEmpty() || matchExpression == null) {
                return false;
            }
    
            final Object value = ComponentUtil.getScriptEngineFactory().getScriptEngine(scriptType).evaluate(matchExpression, map);
            if (value instanceof Boolean) {
                return (Boolean) value;
            }
    
            return false;
        }
    
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Fri Oct 11 21:11:58 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/fess/job/impl/ScriptExecutor.java

            final Map<String, Object> params = new HashMap<>();
            params.put("executor", this);
    
            return ComponentUtil.getScriptEngineFactory().getScriptEngine(scriptType).evaluate(script, params);
        }
    
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 1.1K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/fess/script/ScriptEngineFactory.java

            scriptEngineMap.put(name.toLowerCase(Locale.ROOT), scriptEngine);
            scriptEngineMap.put(scriptEngine.getClass().getSimpleName().toLowerCase(Locale.ROOT), scriptEngine);
        }
    
        public ScriptEngine getScriptEngine(final String name) {
            if (name == null) {
                throw new ScriptEngineException("script name is null.");
            }
            final ScriptEngine scriptEngine = scriptEngineMap.get(name.toLowerCase(Locale.ROOT));
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 2K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/fess/helper/PathMappingHelper.java

                paramMap.put("url", u);
                paramMap.put("matcher", m);
                final Object value =
                        ComponentUtil.getScriptEngineFactory().getScriptEngine(Constants.DEFAULT_SCRIPT).evaluate(template, paramMap);
                if (value == null) {
                    return u;
                }
                return value.toString();
            };
        }
    
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/fess/ds/AbstractDataStore.java

                return StringUtil.EMPTY;
            }
    
            if (paramMap.containsKey(template)) {
                return paramMap.get(template);
            }
    
            return ComponentUtil.getScriptEngineFactory().getScriptEngine(scriptType).evaluate(template, paramMap);
        }
    
        protected long getReadInterval(final DataStoreParams paramMap) {
            long readInterval = 0;
            final String value = paramMap.getAsString("readInterval");
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/fess/crawler/transformer/FessTransformer.java

            if (StringUtil.isEmpty(template)) {
                return StringUtil.EMPTY;
            }
    
            return ComponentUtil.getScriptEngineFactory().getScriptEngine(scriptType).evaluate(template, paramMap);
        }
    
        default int getMaxSiteLength() {
            return getFessConfig().getCrawlerDocumentMaxSiteLengthAsInteger();
        }
    
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Fri Oct 11 21:11:58 UTC 2024
    - 9.5K bytes
    - Viewed (0)
Back to top