Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 16 for evaluator (0.17 sec)

  1. src/main/resources/fess_message_ru.properties

    constraints.ParametersScriptAssert.message  = script expression "{script}" didn't evaluate to true.
    constraints.Range.message                   = {item} must be between {min} and {max}.
    constraints.SafeHtml.message                = {item} may have unsafe html content.
    constraints.ScriptAssert.message            = script expression "{script}" didn't evaluate to true.
    constraints.URL.message                     = {item} must be a valid URL.
    Properties
    - Registered: Mon May 06 08:04:11 GMT 2024
    - Last Modified: Fri May 20 12:12:28 GMT 2022
    - 10.2K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/fess/script/ScriptEngine.java

     * governing permissions and limitations under the License.
     */
    package org.codelibs.fess.script;
    
    import java.util.Map;
    
    public interface ScriptEngine {
        Object evaluate(final String template, final Map<String, Object> paramMap);
    Java
    - Registered: Mon May 06 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 793 bytes
    - Viewed (0)
  3. 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);
        }
    
    Java
    - Registered: Mon May 06 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 1.1K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/fess/score/LtrQueryRescorer.java

    import org.opensearch.search.rescore.QueryRescorerBuilder;
    import org.opensearch.search.rescore.RescorerBuilder;
    
    public class LtrQueryRescorer implements QueryRescorer {
    
        @Override
        public RescorerBuilder<?> evaluate(final Map<String, Object> params) {
            final FessConfig fessConfig = ComponentUtil.getFessConfig();
            final String modelName = fessConfig.getLtrModelName();
            if (StringUtil.isBlank(modelName)) {
    Java
    - Registered: Mon May 06 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 1.5K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/fess/helper/QueryHelper.java

            boostFunctionList.add(new FilterFunctionBuilder(filter, scoreFunction));
        }
    
        public RescorerBuilder<?>[] getRescorers(final Map<String, Object> params) {
            return queryRescorerList.stream().map(r -> r.evaluate(params)).filter(b -> b != null).toArray(n -> new RescorerBuilder<?>[n]);
        }
    
        public void addQueryRescorer(final QueryRescorer rescorer) {
            queryRescorerList.add(rescorer);
        }
    Java
    - Registered: Mon May 06 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 11.9K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/fess/mylasta/action/FessMessages.java

        /** The key of the message: {item} may not be empty. */
        public static final String CONSTRAINTS_NotEmpty_MESSAGE = "{constraints.NotEmpty.message}";
    
        /** The key of the message: script expression "{script}" didn't evaluate to true. */
        public static final String CONSTRAINTS_ParametersScriptAssert_MESSAGE = "{constraints.ParametersScriptAssert.message}";
    
        /** The key of the message: {item} must be between {min} and {max}. */
    Java
    - Registered: Mon May 06 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 119.9K bytes
    - Viewed (0)
  7. 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;
        }
    
        public float getValue(final Map<String, Object> map) {
    Java
    - Registered: Mon May 06 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 2.8K bytes
    - Viewed (0)
  8. 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();
            };
        }
    
    Java
    - Registered: Mon May 06 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 7.6K bytes
    - Viewed (0)
  9. src/test/java/org/codelibs/fess/ds/AbstractDataStoreTest.java

            ComponentUtil.register(scriptEngineFactory, "scriptEngineFactory");
            new AbstractScriptEngine() {
    
                @Override
                public Object evaluate(String template, Map<String, Object> paramMap) {
                    final Map<String, Object> bindingMap = new HashMap<>(paramMap);
                    bindingMap.put("container", SingletonLaContainerFactory.getContainer());
    Java
    - Registered: Mon May 06 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 4.1K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/fess/ds/AbstractDataStore.java

            }
    
            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");
    Java
    - Registered: Mon May 06 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 6.3K bytes
    - Viewed (1)
Back to top