Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 5 of 5 for DocumentReader (0.09 seconds)

  1. src/main/java/org/codelibs/fess/suggest/index/contents/document/DocumentReader.java

     *
     * <p>This interface extends {@link java.io.Closeable}, so implementations
     * should also handle resource cleanup when the {@link #close()} method is called.</p>
     */
    public interface DocumentReader extends Closeable {
        /**
         * Reads a document and returns its contents as a map.
         *
         * @return a map containing the document's data, or null if there are no more documents to read.
         */
    Created: Fri Apr 17 09:08:13 GMT 2026
    - Last Modified: Fri Jul 04 14:00:23 GMT 2025
    - 1.4K bytes
    - Click Count (0)
  2. src/main/java/org/codelibs/fess/suggest/index/operations/ContentIndexingOperations.java

                try (final DocumentReader documentReader = reader.get()) {
                    Map<String, Object> doc = documentReader.read();
                    while (doc != null) {
                        if (Thread.currentThread().isInterrupted()) {
                            break;
                        }
                        docs.add(doc);
                        doc = documentReader.read();
    Created: Fri Apr 17 09:08:13 GMT 2026
    - Last Modified: Sat Mar 14 02:35:38 GMT 2026
    - 21.7K bytes
    - Click Count (0)
  3. src/main/java/org/codelibs/fess/suggest/index/SuggestIndexer.java

            ensureOperations();
            return contentOps.indexFromDocument(createContext(), documents);
        }
    
        /**
         * Indexes documents from a DocumentReader asynchronously.
         * @param reader The supplier for DocumentReader.
         * @param docPerReq The number of documents to process per request.
         * @param waitController The runnable to control waiting between requests.
    Created: Fri Apr 17 09:08:13 GMT 2026
    - Last Modified: Sat Mar 14 02:35:38 GMT 2026
    - 20.9K bytes
    - Click Count (0)
  4. src/main/java/org/codelibs/fess/suggest/index/contents/document/ESSourceReader.java

    import org.opensearch.search.sort.SortBuilder;
    import org.opensearch.transport.client.Client;
    
    /**
     * <p>
     * {@link ESSourceReader} reads documents from Elasticsearch using the scroll API.
     * It implements the {@link DocumentReader} interface to provide a way to iterate over documents
     * in a large index without loading all of them into memory at once.
     * </p>
     *
     * <p>
    Created: Fri Apr 17 09:08:13 GMT 2026
    - Last Modified: Mon Nov 24 03:40:05 GMT 2025
    - 11.1K bytes
    - Click Count (0)
  5. README.md

    ## Advanced Usage
    
    ### Index from Existing Documents
    
    ```java
    import org.codelibs.fess.suggest.index.contents.document.ESSourceReader;
    
    // Index suggestions from existing Elasticsearch documents
    DocumentReader reader = new ESSourceReader(
        client,
        suggester.settings(),
        "content-index",        // source index
        "document"             // document type
    );
    
    suggester.indexer()
    Created: Fri Apr 17 09:08:13 GMT 2026
    - Last Modified: Sun Aug 31 03:31:14 GMT 2025
    - 12.1K bytes
    - Click Count (1)
Back to Top