Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 16 for doc_freq (0.07 seconds)

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

  1. 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. */
    Created: Fri Apr 17 09:08:13 GMT 2026
    - Last Modified: Fri Jul 04 14:00:23 GMT 2025
    - 4.7K bytes
    - Click Count (0)
  2. src/main/java/org/codelibs/fess/suggest/index/operations/DeletionOperations.java

                logger.info("Deleting all suggest items: index={}", index);
            }
            return deleteByQuery(index, QueryBuilders.matchAllQuery());
        }
    
        /**
         * Deletes document words (words with DOC_FREQ >= 1 that don't have QUERY or USER kinds).
         *
         * @param index The index name
         * @return The SuggestDeleteResponse
         */
        public SuggestDeleteResponse deleteDocumentWords(final String index) {
    Created: Fri Apr 17 09:08:13 GMT 2026
    - Last Modified: Sun Feb 01 12:48:24 GMT 2026
    - 9.5K bytes
    - Click Count (0)
  3. src/test/java/org/codelibs/fess/suggest/entity/SuggestItemBoundaryTest.java

            Map<String, Object> source = new HashMap<>();
            source.put(FieldNames.TEXT, "test");
            source.put(FieldNames.QUERY_FREQ, 100L);
            source.put(FieldNames.DOC_FREQ, 50L);
            source.put(FieldNames.USER_BOOST, 2.0f);
            source.put(FieldNames.READING_PREFIX + "0", Arrays.asList("reading1"));
            source.put(FieldNames.FIELDS, Arrays.asList("field1"));
    Created: Fri Apr 17 09:08:13 GMT 2026
    - Last Modified: Sat Jan 17 05:10:37 GMT 2026
    - 22.2K bytes
    - Click Count (0)
  4. src/test/java/org/codelibs/fess/suggest/entity/SuggestItemSerializerTest.java

            existing.put(FieldNames.DOC_FREQ, 5L);
            existing.put(FieldNames.QUERY_FREQ, 3L);
            existing.put(FieldNames.TIMESTAMP, System.currentTimeMillis());
    
            Map<String, Object> updated = SuggestItemSerializer.toUpdatedSource(item, existing);
    
            assertNotNull(updated);
            assertTrue(updated.containsKey(FieldNames.DOC_FREQ));
    Created: Fri Apr 17 09:08:13 GMT 2026
    - Last Modified: Sun Feb 01 12:48:24 GMT 2026
    - 5.4K bytes
    - Click Count (0)
  5. src/main/java/org/codelibs/fess/suggest/entity/SuggestItemSerializer.java

            map.put(FieldNames.QUERY_FREQ, updatedQueryFreq);
    
            final long updatedDocFreq = mergeFrequency(existingSource, FieldNames.DOC_FREQ, item.getDocFreq());
            map.put(FieldNames.DOC_FREQ, updatedDocFreq);
    
            map.put(FieldNames.USER_BOOST, item.getUserBoost());
            map.put(FieldNames.SCORE, (updatedQueryFreq + updatedDocFreq) * item.getUserBoost());
    Created: Fri Apr 17 09:08:13 GMT 2026
    - Last Modified: Sun Feb 01 12:48:24 GMT 2026
    - 13.5K bytes
    - Click Count (0)
  6. 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));
    Created: Fri Apr 17 09:08:13 GMT 2026
    - Last Modified: Mon Sep 01 13:33:03 GMT 2025
    - 16.7K bytes
    - Click Count (0)
  7. src/main/java/org/codelibs/fess/suggest/request/suggest/SuggestQueryBuilder.java

                        ScoreFunctionBuilders.weightFactorFunction(prefixMatchWeight)));
            }
    
            flist.add(new FunctionScoreQueryBuilder.FilterFunctionBuilder(ScoreFunctionBuilders.fieldValueFactorFunction(FieldNames.DOC_FREQ)
                    .missing(0.1f)
                    .modifier(FieldValueFactorFunction.Modifier.LOG2P)
                    .setWeight(1.0F)));
    Created: Fri Apr 17 09:08:13 GMT 2026
    - Last Modified: Sat Mar 14 02:35:38 GMT 2026
    - 8.1K bytes
    - Click Count (0)
  8. 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.
         */
    Created: Fri Apr 17 09:08:13 GMT 2026
    - Last Modified: Sun Feb 01 12:48:24 GMT 2026
    - 13.5K bytes
    - Click Count (0)
  9. 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() {
    Created: Fri Apr 17 09:08:13 GMT 2026
    - Last Modified: Sun Feb 01 12:48:24 GMT 2026
    - 21.6K bytes
    - Click Count (3)
  10. src/main/resources/suggest_indices/suggest/mappings-default.json

            },
            "match": "*",
            "match_mapping_type": "string"
          }
        }
      ],
      "properties": {
        "@timestamp": {
          "type": "date",
          "format": "epoch_millis"
        },
        "docFreq": {
          "type": "long"
        },
        "fields": {
          "type": "keyword"
        },
        "kinds": {
          "type": "keyword"
        },
        "queryFreq": {
          "type": "long"
        },
        "roles": {
    Created: Fri Apr 17 09:08:13 GMT 2026
    - Last Modified: Fri Jan 06 03:01:29 GMT 2017
    - 760 bytes
    - Click Count (0)
Back to Top