Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for Items (0.01 sec)

  1. src/main/java/org/codelibs/fess/suggest/index/SuggestIndexer.java

        }
    
        /**
         * Indexes multiple suggest items.
         * @param items The suggest items to index.
         * @return The SuggestIndexResponse.
         */
        public SuggestIndexResponse index(final SuggestItem[] items) {
            // TODO parallel?
            final SuggestItem[] array = Stream.of(items).filter(item -> !item.isBadWord(badWords)).toArray(n -> new SuggestItem[n]);
    
            try {
    Registered: Fri Sep 19 09:08:11 UTC 2025
    - Last Modified: Thu Aug 07 02:41:28 UTC 2025
    - 34.8K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/fess/suggest/index/contents/DefaultContentsParser.java

                        readings[0] = l.toArray(new String[l.size()]);
    
                        if (items == null) {
                            items = new ArrayList<>(text.length() * fields.length / field.length());
                        }
    
                        final String[] langs = lang == null ? new String[] {} : new String[] { lang };
                        items.add(new SuggestItem(words, readings, new String[] { field }, 1L, 0, -1, tags, roles, langs,
    Registered: Fri Sep 19 09:08:11 UTC 2025
    - Last Modified: Fri Jul 04 14:00:23 UTC 2025
    - 15.4K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/fess/suggest/index/writer/SuggestWriter.java

    /**
     * Interface for writing suggest items.
     */
    public interface SuggestWriter {
        /**
         * Writes the given suggest items to the specified index.
         *
         * @param client   the client used to interact with the search engine
         * @param settings the settings for the suggest feature
         * @param index    the name of the index where the suggest items will be written
    Registered: Fri Sep 19 09:08:11 UTC 2025
    - Last Modified: Fri Jul 04 14:00:23 UTC 2025
    - 4.1K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/fess/suggest/request/suggest/SuggestResponse.java

        /** The list of suggested items. */
        protected final List<SuggestItem> items;
    
        /**
         * Constructor for SuggestResponse.
         * @param index The index name.
         * @param tookMs The time taken in milliseconds.
         * @param words The list of suggested words.
         * @param total The total number of hits.
         * @param items The list of suggested items.
         */
    Registered: Fri Sep 19 09:08:11 UTC 2025
    - Last Modified: Fri Jul 04 14:00:23 UTC 2025
    - 3K bytes
    - Viewed (0)
  5. src/test/java/org/codelibs/fess/suggest/SuggesterTest.java

                items.add(new SuggestItem(new String[] { "マルチワード" + i, "fuga" }, readings, new String[] { "content" }, 0, 15 + i, -1, tags,
                        roles, null, SuggestItem.Kind.QUERY));
            }
    
            return items.toArray(new SuggestItem[items.size()]);
        }
    
        private SuggestItem[] getItemSet2() {
            List<SuggestItem> items = new ArrayList<>();
    
            {
    Registered: Fri Sep 19 09:08:11 UTC 2025
    - Last Modified: Thu Aug 07 02:41:28 UTC 2025
    - 37.2K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/fess/suggest/index/writer/SuggestBulkFileWriter.java

    import org.opensearch.transport.client.Client;
    
    /**
     * SuggestBulkFileWriter is an implementation of the SuggestWriter interface.
     * This class is responsible for writing and deleting suggest items in bulk.
     *
     * <p>Currently, the methods in this class throw UnsupportedOperationException
     * as they are not yet implemented.</p>
     *
     * @see SuggestWriter
     */
    Registered: Fri Sep 19 09:08:11 UTC 2025
    - Last Modified: Fri Jul 04 14:00:23 UTC 2025
    - 2.1K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/fess/suggest/index/writer/SuggestIndexWriter.java

        @Override
        public SuggestWriterResult write(final Client client, final SuggestSettings settings, final String index, final SuggestItem[] items,
                final boolean update) {
            final BulkRequestBuilder bulkRequestBuilder = client.prepareBulk();
    
            final SuggestItem[] mergedItems = mergeItems(items);
            if (mergedItems.length == 0) {
                return new SuggestWriterResult();
            }
    
    Registered: Fri Sep 19 09:08:11 UTC 2025
    - Last Modified: Thu Aug 07 02:41:28 UTC 2025
    - 4.5K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/fess/suggest/request/popularwords/PopularWordsRequest.java

                words.add(text);
    
                if (detail) {
                    items.add(SuggestItem.parseSource(source));
                }
            }
    
            return new PopularWordsResponse(index, searchResponse.getTook().getMillis(), words, searchResponse.getHits().getTotalHits().value(),
                    items);
        }
    Registered: Fri Sep 19 09:08:11 UTC 2025
    - Last Modified: Thu Aug 07 02:41:28 UTC 2025
    - 9.2K bytes
    - Viewed (0)
  9. fess-crawler-opensearch/src/main/java/org/codelibs/fess/crawler/service/impl/OpenSearchUrlFilterService.java

        /**
         * The expiration time for the filter cache in seconds.
         */
        protected int filterCacheExpireAfterWrite = 10; // 10sec
    
        /**
         * The maximum number of items to load into the cache.
         */
        protected int maxLoadSize = 10000;
    
        /**
         * Creates a new instance of OpenSearchUrlFilterService.
         * @param crawlerConfig The crawler configuration.
         */
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Thu Aug 07 02:55:08 UTC 2025
    - 9.2K bytes
    - Viewed (0)
  10. src/test/java/org/codelibs/fess/suggest/entity/SuggestItemTest.java

            assertEquals(75L, merged.getDocFreq()); // Sum of frequencies
            assertEquals(1.5f, merged.getUserBoost(), 0.001f); // Takes item2's boost
    
            // Check merged arrays contain both items' values
            assertTrue(merged.getTags().length >= 2);
            assertTrue(merged.getRoles().length >= 2);
            assertTrue(merged.getLanguages().length >= 2);
            assertEquals(2, merged.getKinds().length);
        }
    Registered: Fri Sep 19 09:08:11 UTC 2025
    - Last Modified: Mon Sep 01 13:33:03 UTC 2025
    - 16.7K bytes
    - Viewed (0)
Back to top