Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 186 for boost1 (0.04 seconds)

  1. src/test/java/org/codelibs/fess/indexer/DocBoostMatcherTest.java

            docBoostMatcher.setBoostExpression("10 * boost1 + boost2");
            docBoostMatcher.setMatchExpression("data1 > 10");
    
            final Map<String, Object> map = new HashMap<String, Object>();
    
            map.put("boost1", 0);
            map.put("boost2", 0);
            assertTrue(0.0f == docBoostMatcher.getValue(map));
    
            map.put("boost1", 1);
            map.put("boost2", 0);
    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)
  2. src/main/java/org/codelibs/fess/script/groovy/GroovyEngine.java

     * Class-level state (static fields, metaclass mutations) persists across evaluations
     * of the same script. In Fess, scripts are short expressions configured by
     * administrators (e.g., "data1 &gt; 10", "10 * boost1 + boost2") and do not use
     * static state, so this is acceptable.</p>
     *
     * <p>Resource Management: Each cached entry's GroovyClassLoader is closed on
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Mar 26 14:36:23 GMT 2026
    - 11.9K bytes
    - Click Count (0)
  3. src/test/java/org/codelibs/fess/score/ScoreUpdaterTest.java

            String result = scoreUpdater.execute();
            assertEquals("", result);
        }
    
        // Test execute with single booster
        @Test
        public void test_execute_singleBooster() {
            TestScoreBooster booster = new TestScoreBooster(100L);
            scoreUpdater.addScoreBooster(booster);
    
            String result = scoreUpdater.execute();
            assertTrue(result.contains("TestScoreBooster : 100"));
        }
    
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Wed Jan 14 14:29:07 GMT 2026
    - 10.5K bytes
    - Click Count (0)
  4. src/main/java/org/codelibs/fess/indexer/DocBoostMatcher.java

    import org.codelibs.fess.util.ComponentUtil;
    
    /**
     * A matcher class for applying document boost values based on configurable expressions.
     * This class evaluates match and boost expressions against document data to determine
     * if a document should receive a boost and what boost value to apply. It supports
     * script-based expressions for flexible document scoring.
     *
     */
    public class DocBoostMatcher {
    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)
  5. src/main/java/org/codelibs/fess/helper/KeyMatchHelper.java

                }
            });
        }
    
        /**
         * Retrieves a list of boosted documents for the specified KeyMatch.
         *
         * @param keyMatch The KeyMatch instance.
         * @return A list of boosted documents.
         */
        public List<Map<String, Object>> getBoostedDocumentList(final KeyMatch keyMatch) {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Nov 28 16:29:12 GMT 2025
    - 10.1K bytes
    - Click Count (0)
  6. src/main/java/org/codelibs/fess/helper/QueryHelper.java

            boolQuery.filter(roleQuery);
        }
    
        /**
         * Builds boost query functions to modify document scoring based on various factors.
         * This method adds field value factors, key matching boosts, and custom boost functions.
         *
         * @param queryContext the query context to add boost functions to
         */
        protected void buildBoostQuery(final QueryContext queryContext) {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Jul 17 08:28:31 GMT 2025
    - 19.9K bytes
    - Click Count (0)
  7. src/main/resources/fess_config.properties

    zh-tw=zh-tw\n\
    zh_TW=zh-tw\n\
    zh=zh\n\
    
    # boost
    
    # Boost value for title field in queries.
    query.boost.title=0.5
    # Boost value for title field with language in queries.
    query.boost.title.lang=1.0
    # Boost value for content field in queries.
    query.boost.content=0.05
    # Boost value for content field with language in queries.
    query.boost.content.lang=0.1
    # Boost value for important content field in queries.
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sat Mar 28 06:59:19 GMT 2026
    - 59.3K bytes
    - Click Count (0)
  8. src/test/java/org/codelibs/fess/helper/QueryHelperTest.java

                    Map.of("_default", List.of("QUERY1", "QUERY2")), //
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 53.2K bytes
    - Click Count (0)
  9. src/test/java/org/codelibs/fess/query/QueryCommandTemplateMethodTest.java

            QueryBuilder result = queryCommand.convertWithFieldCheck(fessConfig, context, Constants.DEFAULT_FIELD, "test text", 1.0f,
                    (field, boost) -> QueryBuilders.matchQuery(field, "test text").boost(boost),
                    (field, text, boost) -> QueryBuilders.matchQuery(field, text).boost(boost));
    
            // Should build default query
            assertNotNull(result);
            assertTrue(result instanceof DefaultQueryBuilder);
        }
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 12.5K bytes
    - Click Count (0)
  10. src/main/java/org/codelibs/fess/query/TermQueryCommand.java

        @Override
        public QueryBuilder execute(final QueryContext context, final Query query, final float boost) {
            if (query instanceof final TermQuery termQuery) {
                if (logger.isDebugEnabled()) {
                    logger.debug("TermQuery: query={}, boost={}", query, boost);
                }
                return convertTermQuery(context, termQuery, boost);
            }
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Nov 28 16:29:12 GMT 2025
    - 13.6K bytes
    - Click Count (0)
Back to Top