Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 3 of 3 for toSuggestItem (0.15 seconds)

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

            // Test toSuggestItem when tags and roles are null (converted to empty lists)
            String word = "null tags and roles";
            float boost = 1.0f;
            List<String> readings = Arrays.asList("reading1");
            List<String> fields = Arrays.asList("field1");
    
            elevateWord = new ElevateWord(word, boost, readings, fields, null, null);
            SuggestItem suggestItem = elevateWord.toSuggestItem();
    
    Created: Fri Apr 17 09:08:13 GMT 2026
    - Last Modified: Mon Sep 01 13:33:03 GMT 2025
    - 16K bytes
    - Click Count (0)
  2. src/main/java/org/codelibs/fess/suggest/entity/ElevateWord.java

            return roles;
        }
    
        /**
         * Converts this ElevateWord instance to a SuggestItem.
         *
         * @return a SuggestItem representing this ElevateWord
         */
        public SuggestItem toSuggestItem() {
            final String[][] readingArray =
                    this.getReadings().stream().map(reading -> new String[] { reading }).toArray(count -> new String[count][]);
    Created: Fri Apr 17 09:08:13 GMT 2026
    - Last Modified: Fri Jul 04 14:00:23 GMT 2025
    - 4K bytes
    - Click Count (0)
  3. src/main/java/org/codelibs/fess/suggest/index/operations/WordManagementOperations.java

                    elevateWord.getTags(), elevateWord.getRoles());
            settings.elevateWord().add(normalized);
            if (apply) {
                final SuggestItem item = normalized.toSuggestItem();
                return indexingOps.index(index, item, badWordsSupplier.get());
            }
            return new SuggestIndexResponse(0, 0, null, 0);
        }
    
        /**
         * Deletes an elevate word.
         *
    Created: Fri Apr 17 09:08:13 GMT 2026
    - Last Modified: Sun Feb 01 12:48:24 GMT 2026
    - 6.4K bytes
    - Click Count (0)
Back to Top