Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 188 for boost1 (0.03 sec)

  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);
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Mar 15 06:53:53 UTC 2025
    - 4.6K bytes
    - Viewed (0)
  2. 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) {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 19.9K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/fess/indexer/DocBoostMatcher.java

    /**
     * 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 {
    
        /** The expression used to calculate the boost value (defaults to "0") */
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 4.8K bytes
    - Viewed (0)
  4. src/test/java/org/codelibs/fess/score/ScoreUpdaterTest.java

            String result = scoreUpdater.execute();
            assertEquals("", result);
        }
    
        // Test execute with single booster
        public void test_execute_singleBooster() {
            TestScoreBooster booster = new TestScoreBooster(100L);
            scoreUpdater.addScoreBooster(booster);
    
            String result = scoreUpdater.execute();
            assertTrue(result.contains("TestScoreBooster : 100"));
        }
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 10.3K bytes
    - Viewed (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) {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 10K bytes
    - Viewed (0)
  6. 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.
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Jul 05 14:45:37 UTC 2025
    - 54.7K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/fess/mylasta/direction/FessConfig.java

        String QUERY_BOOST_TITLE = "query.boost.title";
    
        /** The key of the configuration. e.g. 1.0 */
        String QUERY_BOOST_TITLE_LANG = "query.boost.title.lang";
    
        /** The key of the configuration. e.g. 0.05 */
        String QUERY_BOOST_CONTENT = "query.boost.content";
    
        /** The key of the configuration. e.g. 0.1 */
        String QUERY_BOOST_CONTENT_LANG = "query.boost.content.lang";
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 525.6K bytes
    - Viewed (1)
  8. src/test/java/org/codelibs/fess/query/BoostQueryCommandTest.java

                fail("Should have thrown IllegalArgumentException for negative boost");
            } catch (IllegalArgumentException e) {
                // Expected exception
                assertTrue(e.getMessage().contains("boost must be a positive float"));
            }
        }
    
        public void test_execute_withVeryLargeBoost() {
            // Test executing BoostQuery with very large boost value
            Term term = new Term("field", "large");
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 17K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/fess/query/TermRangeQueryCommand.java

        @Override
        public QueryBuilder execute(final QueryContext context, final Query query, final float boost) {
            if (query instanceof final TermRangeQuery termRangeQuery) {
                if (logger.isDebugEnabled()) {
                    logger.debug("{}:{}", query, boost);
                }
                return convertTermRangeQuery(context, termRangeQuery, boost);
            }
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 4.9K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/fess/query/TermQueryCommand.java

        /**
         * Converts a TermQuery to a QueryBuilder with the given boost value.
         *
         * @param context the query context
         * @param termQuery the term query to convert
         * @param boost the boost value to apply
         * @return the converted QueryBuilder
         */
        protected QueryBuilder convertTermQuery(final QueryContext context, final TermQuery termQuery, final float boost) {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 13.6K bytes
    - Viewed (0)
Back to top