Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 2 of 2 for matchExpression (0.06 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

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

         */
        public boolean match(final Map<String, Object> map) {
    
            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;
        }
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sun Mar 15 06:03:38 GMT 2026
    - 5.2K bytes
    - Click Count (0)
  2. src/test/java/org/codelibs/fess/indexer/DocBoostMatcherTest.java

            assertFalse(docBoostMatcher.match(new HashMap<>()));
        }
    
        @Test
        public void test_match_nullExpression() {
            final DocBoostMatcher docBoostMatcher = new DocBoostMatcher();
            // matchExpression is null by default
            final Map<String, Object> map = new HashMap<String, Object>();
            map.put("data1", 1);
            assertFalse(docBoostMatcher.match(map));
        }
    
        @Test
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sun Mar 15 06:03:38 GMT 2026
    - 8.8K bytes
    - Click Count (0)
Back to Top