Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for SuggestItem (0.04 sec)

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

            SuggestItem suggestItem = elevateWord.toSuggestItem();
    
            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);
    Registered: Fri Sep 19 09:08:11 UTC 2025
    - Last Modified: Mon Sep 01 13:33:03 UTC 2025
    - 16K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/fess/suggest/entity/SuggestItemTest.java

        }
    
        @Test
        public void testConcatKinds() {
            // Test static concatKinds method
            SuggestItem.Kind[] kinds1 = { SuggestItem.Kind.QUERY };
            SuggestItem.Kind[] kinds2 = { SuggestItem.Kind.DOCUMENT, SuggestItem.Kind.QUERY };
    
            SuggestItem.Kind[] result = SuggestItem.concatKinds(kinds1, kinds2);
    
            assertNotNull(result);
    Registered: Fri Sep 19 09:08:11 UTC 2025
    - Last Modified: Mon Sep 01 13:33:03 UTC 2025
    - 16.7K bytes
    - Viewed (0)
  3. src/test/java/org/codelibs/fess/suggest/util/SuggestUtilTest.java

        @Test
        public void testCreateBulkLineWithMinimalItem() {
            // Test with minimal SuggestItem
            SuggestItem item = new SuggestItem(new String[] { "minimal" }, new String[0][0], new String[0], 0, // queryFreq
                    0, // docFreq
                    1.0f, // userBoost
                    new String[0], new String[0], new String[0], SuggestItem.Kind.DOCUMENT);
            item.setTimestamp(ZonedDateTime.now());
    
    Registered: Fri Sep 19 09:08:11 UTC 2025
    - Last Modified: Mon Sep 01 13:33:03 UTC 2025
    - 18.2K bytes
    - Viewed (0)
  4. README.md

    ```java
    import org.codelibs.fess.suggest.entity.SuggestItem;
    
    // Create suggestion item with text, readings, and metadata
    String[][] readings = new String[2][];
    readings[0] = new String[]{"kensaku", "engine"};
    readings[1] = new String[]{"search", "injin"};
    
    String[] tags = new String[]{"technology", "search"};
    String[] roles = new String[]{"admin", "user"};
    
    SuggestItem item = new SuggestItem(
    Registered: Fri Sep 19 09:08:11 UTC 2025
    - Last Modified: Sun Aug 31 03:31:14 UTC 2025
    - 12.1K bytes
    - Viewed (1)
  5. src/main/java/org/codelibs/fess/suggest/util/SuggestUtil.java

         * @param item the SuggestItem containing the data to be indexed
         * @return a string representing the bulk line for OpenSearch indexing
         * @throws SuggesterException if an I/O error occurs during the creation of the bulk line
         */
        public static String createBulkLine(final String index, final String type, final SuggestItem item) {
    Registered: Fri Sep 19 09:08:11 UTC 2025
    - Last Modified: Mon Sep 01 13:33:03 UTC 2025
    - 17.4K bytes
    - Viewed (0)
Back to top