- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 136 for boost1 (0.14 seconds)
-
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) -
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 > 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) -
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) -
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) -
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) -
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) -
src/test/java/org/codelibs/fess/helper/QueryHelperTest.java
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) -
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) -
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) -
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")); } } @TestCreated: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Mar 13 23:01:26 GMT 2026 - 17K bytes - Click Count (0)