Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 2 of 2 for setBoostExpression (0.1 seconds)

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

            return boostExpression;
        }
    
        /**
         * Sets the boost expression used to calculate boost values.
         *
         * @param expression the boost expression string
         */
        public void setBoostExpression(final String expression) {
            boostExpression = expression;
        }
    
        /**
         * Gets the current match expression.
         *
         * @return the match expression string
         */
    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

            docBoostMatcher.setBoostExpression("100L");
    
            final Map<String, Object> map = new HashMap<String, Object>();
            map.put("data1", 1);
            assertEquals(100.0f, docBoostMatcher.getValue(map));
        }
    
        @Test
        public void test_getValue_numericStringReturn() {
            final DocBoostMatcher docBoostMatcher = new DocBoostMatcher();
            docBoostMatcher.setBoostExpression("'3.14'");
    
    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