Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 5 of 5 for getUserBoost (0.2 seconds)

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

  1. src/test/java/org/codelibs/fess/suggest/entity/SuggestItemTest.java

            assertEquals(1.0f, item.getUserBoost(), 0.001f); // Should be set to 1
    
            // Test with boost greater than 1
            SuggestItem item2 = new SuggestItem(text, readings, null, 0L, 0L, 2.5f, null, null, null, SuggestItem.Kind.QUERY);
            assertEquals(2.5f, item2.getUserBoost(), 0.001f); // Should keep the value
        }
    
    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)
  2. src/main/java/org/codelibs/fess/suggest/entity/SuggestItem.java

         */
        public long getDocFreq() {
            return docFreq;
        }
    
        /**
         * Returns the user boost of the suggest item.
         * @return The user boost.
         */
        public float getUserBoost() {
            return userBoost;
        }
    
        /**
         * Returns the timestamp of the suggest item.
         * @return The timestamp.
         */
        public ZonedDateTime getTimestamp() {
    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)
  3. src/test/java/org/codelibs/fess/suggest/SuggesterTest.java

            assertEquals(1, response1.getNum());
            assertEquals(1, response1.getTotal());
            assertEquals(2.0f, response1.getItems().get(0).getUserBoost(), 0);
    
            ElevateWord[] elevateWords = suggester.settings().elevateWord().get();
            assertEquals(1, elevateWords.length);
            assertEquals("test", elevateWords[0].getElevateWord());
    
    Created: Fri Apr 17 09:08:13 GMT 2026
    - Last Modified: Sun Feb 01 12:48:24 GMT 2026
    - 37.1K bytes
    - Click Count (0)
  4. src/main/java/org/codelibs/fess/suggest/entity/SuggestItemSerializer.java

            map.put(FieldNames.QUERY_FREQ, item.getQueryFreq());
            map.put(FieldNames.DOC_FREQ, item.getDocFreq());
            map.put(FieldNames.USER_BOOST, item.getUserBoost());
            map.put(FieldNames.SCORE, (item.getQueryFreq() + item.getDocFreq()) * item.getUserBoost());
            map.put(FieldNames.TIMESTAMP, item.getTimestamp().toInstant().toEpochMilli());
            return map;
        }
    
        /**
    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)
  5. src/test/java/org/codelibs/fess/suggest/entity/SuggestItemBoundaryTest.java

            SuggestItem item = new SuggestItem(text, readings, null, 0L, 0L, 0.0f, null, null, null, SuggestItem.Kind.QUERY);
    
            // User boost should be at least 1
            assertEquals(1.0f, item.getUserBoost(), 0.001f);
        }
    
        @Test
        public void test_userBoostNegative() {
            String[] text = { "test" };
            String[][] readings = { { "test" } };
    
    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)
Back to Top