Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 151 for boost1 (0.05 seconds)

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

  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/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)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. src/test/java/org/codelibs/fess/query/MatchAllQueryCommandTest.java

            float boost = -1.0f;
    
            try {
                matchAllQueryCommand.execute(context, query, boost);
                fail("Should throw IllegalArgumentException for negative boost");
            } catch (IllegalArgumentException e) {
                // Expected exception
                assertTrue(e.getMessage().contains("negative [boost] are not allowed"));
            }
        }
    
        @Test
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 17K bytes
    - Click Count (0)
  9. src/main/java/org/codelibs/fess/suggest/entity/ElevateWord.java

    /**
     * Represents an elevate word entity with associated properties such as boost, readings, fields, tags, and roles.
     */
    public class ElevateWord {
    
        /**
         * The elevate word.
         */
        protected final String elevateWord;
    
        /**
         * The boost value associated with the elevate word.
         */
        protected final float boost;
    
        /**
         * The list of readings associated with the elevate word.
    Created: Fri Apr 17 09:08:13 GMT 2026
    - Last Modified: Fri Jul 04 14:00:23 GMT 2025
    - 4K bytes
    - Click Count (0)
  10. src/test/java/org/codelibs/fess/suggest/entity/ElevateWordTest.java

            // Test constructor with zero boost
            String word = "zero boost";
            float boost = 0.0f;
            List<String> readings = Arrays.asList("reading1");
            List<String> fields = Arrays.asList("field1");
            List<String> tags = Arrays.asList("tag1");
            List<String> roles = Arrays.asList("role1");
    
            elevateWord = new ElevateWord(word, boost, readings, fields, tags, roles);
    
    Created: Fri Apr 17 09:08:13 GMT 2026
    - Last Modified: Mon Sep 01 13:33:03 GMT 2025
    - 16K bytes
    - Click Count (0)
Back to Top