- Sort Score
- Result 10 results
- Languages All
Results 1 - 9 of 9 for docFreq (0.23 sec)
-
src/main/java/org/codelibs/fess/suggest/entity/SuggestItem.java
this.queryFreq = queryFreq; } /** * Sets the document frequency of the suggest item. * @param docFreq The document frequency to set. */ public void setDocFreq(final long docFreq) { this.docFreq = docFreq; } /** * Sets the user boost of the suggest item. * @param userBoost The user boost to set. */
Registered: Fri Sep 19 09:08:11 UTC 2025 - Last Modified: Thu Aug 07 02:41:28 UTC 2025 - 25.1K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/suggest/constants/FieldNames.java
public static final String SCORE = "score"; /** The query frequency field. */ public static final String QUERY_FREQ = "queryFreq"; /** The document frequency field. */ public static final String DOC_FREQ = "docFreq"; /** The user boost field. */ public static final String USER_BOOST = "userBoost"; /** The kinds field. */ public static final String KINDS = "kinds"; /** The timestamp field. */
Registered: Fri Sep 19 09:08:11 UTC 2025 - Last Modified: Fri Jul 04 14:00:23 UTC 2025 - 4.7K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/suggest/util/SuggestUtilTest.java
SuggestItem item = new SuggestItem(new String[] { "test text" }, new String[][] { { "reading1" }, { "reading2" } }, new String[] { "field1", "field2" }, 10, // queryFreq 5, // docFreq 2.0f, // userBoost new String[] { "tag1", "tag2" }, new String[] { "role1" }, new String[] {}, // languages SuggestItem.Kind.DOCUMENT);
Registered: Fri Sep 19 09:08:11 UTC 2025 - Last Modified: Mon Sep 01 13:33:03 UTC 2025 - 18.2K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/suggest/entity/ElevateWordTest.java
assertNotNull(suggestItem); assertEquals(word, suggestItem.getText()); assertEquals(boost, suggestItem.getUserBoost(), 0.001f); // The queryFreq and docFreq might be handled differently by SuggestItem assertTrue(suggestItem.getQueryFreq() >= 0); assertTrue(suggestItem.getDocFreq() >= 0); // Check readings
Registered: Fri Sep 19 09:08:11 UTC 2025 - Last Modified: Mon Sep 01 13:33:03 UTC 2025 - 16K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/suggest/util/SuggestUtil.java
secondLine.put("reading_" + i, readings[i]); } secondLine.put("fields", item.getFields()); secondLine.put("queryFreq", item.getQueryFreq()); secondLine.put("docFreq", item.getDocFreq()); secondLine.put("userBoost", item.getUserBoost()); secondLine.put("score", (item.getQueryFreq() + item.getDocFreq()) * item.getUserBoost()); secondLine.put("tags", item.getTags());
Registered: Fri Sep 19 09:08:11 UTC 2025 - Last Modified: Mon Sep 01 13:33:03 UTC 2025 - 17.4K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/suggest/entity/SuggestItemTest.java
assertNotNull(map); assertEquals("", map.get(FieldNames.TEXT)); // Empty string for empty map assertEquals(0L, map.get(FieldNames.QUERY_FREQ)); assertEquals(0L, map.get(FieldNames.DOC_FREQ)); assertEquals(1.0f, map.get(FieldNames.USER_BOOST)); assertNotNull(map.get(FieldNames.READING_PREFIX + "0")); assertNotNull(map.get(FieldNames.FIELDS));
Registered: Fri Sep 19 09:08:11 UTC 2025 - Last Modified: Mon Sep 01 13:33:03 UTC 2025 - 16.7K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/suggest/index/SuggestIndexer.java
final long start = System.currentTimeMillis(); final SuggestDeleteResponse deleteResponse = deleteByQuery(QueryBuilders.boolQuery() .must(QueryBuilders.rangeQuery(FieldNames.DOC_FREQ).gte(1)) .mustNot(QueryBuilders.matchPhraseQuery(FieldNames.KINDS, SuggestItem.Kind.QUERY.toString())) .mustNot(QueryBuilders.matchPhraseQuery(FieldNames.KINDS, SuggestItem.Kind.USER.toString())));
Registered: Fri Sep 19 09:08:11 UTC 2025 - Last Modified: Thu Aug 07 02:41:28 UTC 2025 - 34.8K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/suggest/request/suggest/SuggestRequest.java
ScoreFunctionBuilders.weightFactorFunction(prefixMatchWeight))); } flist.add(new FunctionScoreQueryBuilder.FilterFunctionBuilder(ScoreFunctionBuilders.fieldValueFactorFunction(FieldNames.DOC_FREQ) .missing(0.1f) .modifier(FieldValueFactorFunction.Modifier.LOG2P) .setWeight(1.0F)));
Registered: Fri Sep 19 09:08:11 UTC 2025 - Last Modified: Thu Aug 07 02:41:28 UTC 2025 - 17.8K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/suggest/Suggester.java
* Returns the number of document words in the suggestion index. * @return The number of document words. */ public long getDocumentWordsNum() { return getNum(QueryBuilders.rangeQuery(FieldNames.DOC_FREQ).gte(1)); } /** * Returns the number of query words in the suggestion index. * @return The number of query words. */ public long getQueryWordsNum() {
Registered: Fri Sep 19 09:08:11 UTC 2025 - Last Modified: Thu Aug 07 02:41:28 UTC 2025 - 20.7K bytes - Viewed (1)